Skip to content

Commit 79d5742

Browse files
committed
Temporarily skip failing tests until driver upgrade
1 parent 7e46108 commit 79d5742

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/SpecTests/RetryableWritesSpecTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class RetryableWritesSpecTest extends FunctionalTestCase
2323
*/
2424
public function testRetryableWrites(stdClass $test, array $runOn = null, array $data)
2525
{
26+
if ($this->isShardedCluster() && ! $this->isShardedClusterUsingReplicasets()) {
27+
$this->markTestSkipped('Transaction numbers are only allowed on a replica set member or mongos (PHPC-1415)');
28+
}
29+
2630
if (isset($test->useMultipleMongoses) && $test->useMultipleMongoses && $this->isShardedCluster()) {
2731
$this->manager = new Manager(static::getUri(true));
2832
}

tests/SpecTests/TransactionsSpecTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ public function testTransactions(stdClass $test, array $runOn = null, array $dat
123123
$this->markTestIncomplete(self::$incompleteTests[$this->dataDescription()]);
124124
}
125125

126+
if ($this->isShardedCluster()) {
127+
$this->markTestSkipped('PHP MongoDB driver 1.6.0alpha2 does not support running multi-document transactions on sharded clusters');
128+
}
129+
126130
if (isset($test->useMultipleMongoses) && $test->useMultipleMongoses && $this->isShardedCluster()) {
127131
$this->manager = new Manager(static::getUri(true));
128132
}

0 commit comments

Comments
 (0)