Tests: Added explicit sort on tests to fix flakiness

This commit is contained in:
snipe
2026-06-09 13:02:05 +01:00
parent df92076e15
commit e430e4e6e2
@@ -135,7 +135,7 @@ class AssetModelFilesTest extends TestCase
// List the files to get the file ID
$result = $this->actingAsForApi($user)
->getJson(
route('api.files.index', ['object_type' => 'models', 'id' => $model->id, 'order' => 'asc'])
route('api.files.index', ['object_type' => 'models', 'id' => $model->id, 'sort' => 'id', 'order' => 'asc'])
)
->assertOk()
->assertJsonStructure(