diff options
author | Misha Tyulenev <misha@mongodb.com> | 2017-12-15 13:48:58 -0500 |
---|---|---|
committer | Misha Tyulenev <misha@mongodb.com> | 2017-12-15 15:54:03 -0500 |
commit | 36874a480ea4e2be33af298777a8d6824b7b974e (patch) | |
tree | dd7f7fdb415c76710c52c804a9168ed43abbb29f /jstests | |
parent | b1ae796faf5f262cd658f59a59d18f8c3eb0d4ee (diff) | |
download | mongo-36874a480ea4e2be33af298777a8d6824b7b974e.tar.gz |
SERVER-31916 wait for clusterTime on mongo connection
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/sharding/aggregation_currentop.js | 1 | ||||
-rw-r--r-- | jstests/sharding/auth_slaveok_routing.js | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/jstests/sharding/aggregation_currentop.js b/jstests/sharding/aggregation_currentop.js index 395888f7e0c..2e5ece81ba1 100644 --- a/jstests/sharding/aggregation_currentop.js +++ b/jstests/sharding/aggregation_currentop.js @@ -45,6 +45,7 @@ const clusterTestDB = mongosConn.getDB(jsTestName()); const clusterAdminDB = mongosConn.getDB("admin"); + shardConn.waitForClusterTime(60); let shardAdminDB = shardConn.getDB("admin"); function createUsers(conn) { diff --git a/jstests/sharding/auth_slaveok_routing.js b/jstests/sharding/auth_slaveok_routing.js index f8dfd99f403..e55c253ee9b 100644 --- a/jstests/sharding/auth_slaveok_routing.js +++ b/jstests/sharding/auth_slaveok_routing.js @@ -7,7 +7,7 @@ * engines. When all nodes in a replica set are using an ephemeral storage engine, the set cannot * recover from a full restart. Once restarted, the nodes will have no knowledge of the replica set * config and will be unable to elect a primary. - * @tags: [requires_persistence] + * @tags: [requires_persistence, requires_find_command] */ (function() { 'use strict'; @@ -47,6 +47,7 @@ adminDB.createUser({user: 'user', pwd: 'password', roles: jsTest.adminUserRoles}); adminDB.auth('user', 'password'); var priAdminDB = replTest.getPrimary().getDB('admin'); + replTest.getPrimary().waitForClusterTime(60); priAdminDB.createUser({user: 'user', pwd: 'password', roles: jsTest.adminUserRoles}, {w: 3, wtimeout: 30000}); |