PHPLIB-461: Fix ChangeStream tests on sharded clusters

parent a42e3479
...@@ -935,6 +935,10 @@ class DocumentationExamplesTest extends FunctionalTestCase ...@@ -935,6 +935,10 @@ class DocumentationExamplesTest extends FunctionalTestCase
{ {
$this->skipIfChangeStreamIsNotSupported(); $this->skipIfChangeStreamIsNotSupported();
if ($this->isShardedCluster()) {
$this->markTestSkipped('Test does not apply on sharded clusters: need more than a single getMore call on the change stream.');
}
$db = new Database($this->manager, $this->getDatabaseName()); $db = new Database($this->manager, $this->getDatabaseName());
$db->dropCollection('inventory'); $db->dropCollection('inventory');
$db->createCollection('inventory'); $db->createCollection('inventory');
......
...@@ -336,9 +336,6 @@ abstract class FunctionalTestCase extends TestCase ...@@ -336,9 +336,6 @@ abstract class FunctionalTestCase extends TestCase
if (! $this->isShardedClusterUsingReplicasets()) { if (! $this->isShardedClusterUsingReplicasets()) {
$this->markTestSkipped('$changeStream is only supported with replicasets'); $this->markTestSkipped('$changeStream is only supported with replicasets');
} }
// Temporarily skip tests because of an issue with change streams in the driver
$this->markTestSkipped('$changeStreams currently don\'t on replica sets');
break; break;
case Server::TYPE_RS_PRIMARY: case Server::TYPE_RS_PRIMARY:
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment