Skip to content

Commit 7e46108

Browse files
committed
Create manager with multiple mongos nodes when tests require it
1 parent d5b1156 commit 7e46108

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/SpecTests/RetryableWritesSpecTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace MongoDB\Tests\SpecTests;
44

55
use LogicException;
6+
use MongoDB\Driver\Manager;
67
use stdClass;
78

89
/**
@@ -22,9 +23,8 @@ class RetryableWritesSpecTest extends FunctionalTestCase
2223
*/
2324
public function testRetryableWrites(stdClass $test, array $runOn = null, array $data)
2425
{
25-
// TODO: Revise this once a test environment with multiple mongos nodes is available (see: PHPLIB-430)
2626
if (isset($test->useMultipleMongoses) && $test->useMultipleMongoses && $this->isShardedCluster()) {
27-
$this->markTestSkipped('"useMultipleMongoses" is not supported');
27+
$this->manager = new Manager(static::getUri(true));
2828
}
2929

3030
if (isset($runOn)) {

tests/SpecTests/TransactionsSpecTest.php

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

126-
// TODO: Revise this once a test environment with multiple mongos nodes is available (see: PHPLIB-430)
127126
if (isset($test->useMultipleMongoses) && $test->useMultipleMongoses && $this->isShardedCluster()) {
128-
$this->markTestIncomplete('"useMultipleMongoses" is not supported');
127+
$this->manager = new Manager(static::getUri(true));
129128
}
130129

131130
if (isset($runOn)) {

0 commit comments

Comments
 (0)