Commit 4fc1f90b authored by Jeremy Mikola's avatar Jeremy Mikola

Merge pull request #635

parents e3d90cd7 933f845b
......@@ -6,8 +6,10 @@ use MongoDB\BSON\UTCDateTime;
use MongoDB\Client;
use MongoDB\Database;
use MongoDB\Driver\Cursor;
use MongoDB\Driver\ReadPreference;
use MongoDB\Driver\Server;
use MongoDB\Driver\WriteConcern;
use MongoDB\Driver\Exception\ConnectionTimeoutException;
use MongoDB\Operation\DropCollection;
/**
......@@ -1412,6 +1414,12 @@ class DocumentationExamplesTest extends FunctionalTestCase
{
$this->skipIfCausalConsistencyIsNotSupported();
try {
$this->manager->selectServer(new ReadPreference('secondary'));
} catch (ConnectionTimeoutException $e) {
$this->markTestSkipped('Secondary is not available');
}
// Prep
$client = new Client(static::getUri());
$items = $client->selectDatabase(
......
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