Merge pull request #16784 from marcusmoore/fix-flaky-timestamp-tests

Fixed flaky test
This commit is contained in:
snipe 2025-04-22 11:03:58 +01:00 committed by GitHub
commit 55176816aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,8 +132,8 @@ class ImportAssetModelsTest extends ImportDataTestCase implements TestsPermissio
$this->assertEquals($row['model_number'], $updatedAssetmodel->model_number);
$this->assertEquals(
Arr::except($assetmodel->attributesToArray(), $updatedAttributes),
Arr::except($updatedAssetmodel->attributesToArray(), $updatedAttributes),
Arr::except($assetmodel->attributesToArray(), array_merge($updatedAttributes, $assetmodel->getDates())),
Arr::except($updatedAssetmodel->attributesToArray(), array_merge($updatedAttributes, $assetmodel->getDates())),
);
}