Skip to content

Commit b26a7a3

Browse files
committed
PHPLIB-537: Skip change stream tests on single node clusters
1 parent 6d1c62f commit b26a7a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/SpecTests/ChangeStreamsSpecTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ public function testChangeStreams(stdClass $test, $databaseName = null, $collect
8686
$this->markTestIncomplete(self::$incompleteTests[$this->dataDescription()]);
8787
}
8888

89+
if ($this->isShardedCluster() && ! $this->isShardedClusterUsingReplicasets()) {
90+
$this->markTestSkipped('$changeStream is only supported with replicasets');
91+
}
92+
8993
$this->checkServerRequirements($this->createRunOn($test));
9094

9195
if (! isset($databaseName, $collectionName)) {

0 commit comments

Comments
 (0)