Create manager with multiple mongos nodes when tests require it

parent d5b1156d
......@@ -3,6 +3,7 @@
namespace MongoDB\Tests\SpecTests;
use LogicException;
use MongoDB\Driver\Manager;
use stdClass;
/**
......@@ -22,9 +23,8 @@ class RetryableWritesSpecTest extends FunctionalTestCase
*/
public function testRetryableWrites(stdClass $test, array $runOn = null, array $data)
{
// TODO: Revise this once a test environment with multiple mongos nodes is available (see: PHPLIB-430)
if (isset($test->useMultipleMongoses) && $test->useMultipleMongoses && $this->isShardedCluster()) {
$this->markTestSkipped('"useMultipleMongoses" is not supported');
$this->manager = new Manager(static::getUri(true));
}
if (isset($runOn)) {
......
......@@ -123,9 +123,8 @@ class TransactionsSpecTest extends FunctionalTestCase
$this->markTestIncomplete(self::$incompleteTests[$this->dataDescription()]);
}
// TODO: Revise this once a test environment with multiple mongos nodes is available (see: PHPLIB-430)
if (isset($test->useMultipleMongoses) && $test->useMultipleMongoses && $this->isShardedCluster()) {
$this->markTestIncomplete('"useMultipleMongoses" is not supported');
$this->manager = new Manager(static::getUri(true));
}
if (isset($runOn)) {
......
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