summaryrefslogtreecommitdiff
path: root/jstests/sharding/auth_repl.js
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-03-04 17:41:56 -0500
committerRandolph Tan <randolph@10gen.com>2014-04-21 16:53:25 -0400
commit7acafe85d9bdd63122c19ba1cca86a7f55174941 (patch)
tree234effd8e5a5b6c63d8b12c74de2d9acb78a7509 /jstests/sharding/auth_repl.js
parente87b42c4f13e48078f5c4aefba3caf18dcfba072 (diff)
downloadmongo-7acafe85d9bdd63122c19ba1cca86a7f55174941.tar.gz
SERVER-13425 migrate sharding jstest suite to use write commands api
Diffstat (limited to 'jstests/sharding/auth_repl.js')
-rw-r--r--jstests/sharding/auth_repl.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/sharding/auth_repl.js b/jstests/sharding/auth_repl.js
index 3c0a5d14be2..c07719843b1 100644
--- a/jstests/sharding/auth_repl.js
+++ b/jstests/sharding/auth_repl.js
@@ -11,8 +11,7 @@ var conn = new Mongo(replTest.getURL());
var testDB = conn.getDB('test');
var testColl = testDB.user;
-testColl.insert({ x: 1 });
-testDB.runCommand({ getLastError: 1, w: nodeCount });
+assert.writeOK(testColl.insert({ x: 1 }, { writeConcern: { w: nodeCount }}));
// Setup the cached connection for primary and secondary in DBClientReplicaSet
// before setting up authentication