Skip to content

Conversation

@GromNaN
Copy link
Member

@GromNaN GromNaN commented Dec 8, 2025

This test is inconsistently crashing:

1) MongoDB\Laravel\Tests\SchemaTest::testGetTables Failed asserting that 40960 matches expected 8192.

1) MongoDB\Laravel\Tests\SchemaTest::testGetTables
Failed asserting that 40960 matches expected 8192.
@GromNaN GromNaN added this to the 5.5 milestone Dec 8, 2025
@GromNaN GromNaN requested review from alcaeus and Copilot December 8, 2025 14:13
@GromNaN GromNaN requested a review from a team as a code owner December 8, 2025 14:13
@GromNaN GromNaN added the bug label Dec 8, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a flaky test in SchemaTest::testGetTables that was failing intermittently due to a strict equality assertion on a collection size value that can vary.

Key Changes:

  • Replaced strict equality assertion with a minimum threshold check for collection size validation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GromNaN GromNaN mentioned this pull request Dec 8, 2025
@GromNaN GromNaN enabled auto-merge (squash) December 8, 2025 14:24
@GromNaN GromNaN requested review from jmikola and paulinevos December 8, 2025 17:30
Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a nit about being even more defensive, but this works just fine.

@GromNaN GromNaN merged commit bc1ceb8 into mongodb:5.5 Dec 9, 2025
72 checks passed
@GromNaN GromNaN deleted the test-schema-table-size branch December 9, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants