Skip to content

Fix non-deterministic test#11866

Merged
SenseException merged 1 commit intodoctrine:2.20.xfrom
mbeccati:fix-unordered-test
Mar 13, 2025
Merged

Fix non-deterministic test#11866
SenseException merged 1 commit intodoctrine:2.20.xfrom
mbeccati:fix-unordered-test

Conversation

@mbeccati
Copy link
Copy Markdown
Contributor

I've got a random test failure on my CI, which led me to the discovery that the test is missing ORDER BYs to make it deterministic.

1) Doctrine\Tests\ORM\Functional\QueryTest::testModifiedLimitQuery
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'gblanco1'
+'gblanco0'

/.../tests/Tests/ORM/Functional/QueryTest.php:567

@SenseException SenseException merged commit 3303cd3 into doctrine:2.20.x Mar 13, 2025
71 checks passed
@SenseException
Copy link
Copy Markdown
Member

Thank you @mbeccati

@mbeccati mbeccati deleted the fix-unordered-test branch March 14, 2025 17:10
@greg0ire greg0ire added this to the 2.20.3 milestone May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants