Skip to content

Commit e3d2475

Browse files
committed
PHPLIB-268: Skip maxAwaitTimeMS functional test for older servers
On servers before 3.2, the option is ignored, which results in a noticeable delay while running the test suite.
1 parent 5a0b637 commit e3d2475

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/FooTest.php

Whitespace-only changes.

tests/Operation/FindFunctionalTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ public function provideTypeMapOptionsAndExpectedDocuments()
127127

128128
public function testMaxAwaitTimeMS()
129129
{
130+
if (version_compare($this->getServerVersion(), '3.2.0', '<')) {
131+
$this->markTestSkipped('maxAwaitTimeMS option is not supported');
132+
}
133+
130134
$maxAwaitTimeMS = 10;
131135

132136
// Create a capped collection.

0 commit comments

Comments
 (0)