Skip to content

Commit bbb13f9

Browse files
authored
Improve flakey index version test (#1844)
1 parent 161a8e2 commit bbb13f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Model/IndexInfoFunctionalTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public function testIs2dSphere(): void
2828
$this->assertEquals($indexName, $index->getName());
2929
$this->assertTrue($index->is2dSphere());
3030

31-
// MongoDB 3.2+ reports index version 3
32-
$this->assertEquals(3, $index['2dsphereIndexVersion']);
31+
// MongoDB 3.2+ reports index version 3, MongoDB 8.3+ reports version 4
32+
$this->assertGreaterThanOrEqual(3, $index['2dsphereIndexVersion']);
3333
}
3434

3535
public function testIsText(): void

0 commit comments

Comments
 (0)