From bc1ceb838ed11016d91b42580530ddd94fabfb9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Tue, 9 Dec 2025 09:25:58 +0100 Subject: [PATCH] Fix test that randomly crashes (#3464) 1) MongoDB\Laravel\Tests\SchemaTest::testGetTables Failed asserting that 40960 matches expected 8192. --- tests/SchemaTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SchemaTest.php b/tests/SchemaTest.php index 9726eb705..a6a6cabe3 100644 --- a/tests/SchemaTest.php +++ b/tests/SchemaTest.php @@ -458,7 +458,7 @@ public function testGetTables() $this->assertNotEquals('test_view', $table['name'], 'Standard views should not be included in the result of getTables.'); if ($table['name'] === self::COLL_1) { - $this->assertEquals(8192, $table['size']); + $this->assertGreaterThanOrEqual(8192, $table['size']); $this->assertEquals($dbName, $table['schema']); $this->assertEquals($dbName . '.' . self::COLL_1, $table['schema_qualified_name']); $found = true;