summaryrefslogtreecommitdiff
path: root/jstests/sharding/auth_repl.js
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2013-07-12 11:47:26 -0400
committerRandolph Tan <randolph@10gen.com>2013-07-12 12:46:39 -0400
commit7bafcc73b71bfd364786f6faf4401d345d714eba (patch)
treef07c771ea45e4c99623ab97d6ffcee6509e6676e /jstests/sharding/auth_repl.js
parent42b8033f86de1e51283118bf00c0f13493536109 (diff)
downloadmongo-7bafcc73b71bfd364786f6faf4401d345d714eba.tar.gz
SERVER-10138 Temporary fix for auth_repl.js failure
Diffstat (limited to 'jstests/sharding/auth_repl.js')
-rw-r--r--jstests/sharding/auth_repl.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/sharding/auth_repl.js b/jstests/sharding/auth_repl.js
index e732dee0036..38b03d40a42 100644
--- a/jstests/sharding/auth_repl.js
+++ b/jstests/sharding/auth_repl.js
@@ -27,10 +27,12 @@ assert(doc != null);
// Add admin user using direct connection to primary to simulate connection from remote host
var adminDB = primary.getDB('admin');
adminDB.addUser('user', 'user', false, nodeCount);
+adminDB.runCommand({ getLastError: 1, w: nodeCount }); // TODO: remove after fixing SERVER-9980
adminDB.auth('user', 'user');
var priTestDB = primary.getDB('test');
priTestDB.addUser('a', 'a', false, nodeCount);
+priTestDB.runCommand({ getLastError: 1, w: nodeCount }); // TODO: remove after fixing SERVER-9980
// Authenticate the replSet connection
assert.eq(1, testDB.auth('a', 'a'));