summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorMisha Tyulenev <misha@mongodb.com>2017-12-15 13:48:58 -0500
committerMisha Tyulenev <misha@mongodb.com>2017-12-15 15:54:03 -0500
commit36874a480ea4e2be33af298777a8d6824b7b974e (patch)
treedd7f7fdb415c76710c52c804a9168ed43abbb29f /jstests
parentb1ae796faf5f262cd658f59a59d18f8c3eb0d4ee (diff)
downloadmongo-36874a480ea4e2be33af298777a8d6824b7b974e.tar.gz
SERVER-31916 wait for clusterTime on mongo connection
Diffstat (limited to 'jstests')
-rw-r--r--jstests/sharding/aggregation_currentop.js1
-rw-r--r--jstests/sharding/auth_slaveok_routing.js3
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});