summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorKristina <kristina@10gen.com>2012-03-07 19:00:08 -0500
committerKristina <kristina@10gen.com>2012-03-07 19:00:18 -0500
commit5132fee1a9e4e5bcfe17a414e732c371d51072ea (patch)
tree378270de7ae0c81a3aac36f9a5d15e4f1ed3ce9b /jstests
parent7f6a8e037806b34a20448a9f7dd08e48c92bbc81 (diff)
downloadmongo-5132fee1a9e4e5bcfe17a414e732c371d51072ea.tar.gz
Fix test to propagate user before logging in SERVER-4920
Diffstat (limited to 'jstests')
-rw-r--r--jstests/replsets/auth3.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/replsets/auth3.js b/jstests/replsets/auth3.js
index b15edf448d5..4af654854a1 100644
--- a/jstests/replsets/auth3.js
+++ b/jstests/replsets/auth3.js
@@ -8,6 +8,7 @@ rs.initiate();
master = rs.getMaster();
print("adding user");
master.getDB("admin").addUser("foo", "bar");
+master.getDB("admin").runCommand({getLastError:1, w:2});
var checkValidState = function(i) {
assert.soon(function() {