Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
The order of files found by the Finder depends on the local file system.
On purpose the Finder does not sort, as it can be a big list, as its simply
not needed to work with Gember Event Sourcing; the order is irrelevant.
  • Loading branch information
jerowork committed Oct 12, 2024
1 parent 5bcded5 commit 61181fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/SymfonyFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ public function itShouldReturnAllFilesInPath(): void
{
$files = $this->finder->getFiles(__DIR__ . '/TestDoubles');

sort($files);

self::assertSame([
__DIR__ . '/TestDoubles/TestClass.php',
__DIR__ . '/TestDoubles/Subfolder/AnotherClass.php',
__DIR__ . '/TestDoubles/Subfolder/TestClass.php',
__DIR__ . '/TestDoubles/TestClass.php',
], $files);
}
}

0 comments on commit 61181fc

Please sign in to comment.