Skip to content

Commit bc1ceb8

Browse files
authored
Fix test that randomly crashes (#3464)
1) MongoDB\Laravel\Tests\SchemaTest::testGetTables Failed asserting that 40960 matches expected 8192.
1 parent 8edd6a2 commit bc1ceb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/SchemaTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public function testGetTables()
458458
$this->assertNotEquals('test_view', $table['name'], 'Standard views should not be included in the result of getTables.');
459459

460460
if ($table['name'] === self::COLL_1) {
461-
$this->assertEquals(8192, $table['size']);
461+
$this->assertGreaterThanOrEqual(8192, $table['size']);
462462
$this->assertEquals($dbName, $table['schema']);
463463
$this->assertEquals($dbName . '.' . self::COLL_1, $table['schema_qualified_name']);
464464
$found = true;

0 commit comments

Comments
 (0)