summaryrefslogtreecommitdiff
path: root/jstests/replsets/auth2.js
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-03-03 11:27:18 -0500
committerRandolph Tan <randolph@10gen.com>2014-03-14 12:05:05 -0400
commiteb41492c6f1228077b92239524e4a607b70cd8e3 (patch)
treec90485d43753aa756063d0a6e8f67b8843931bba /jstests/replsets/auth2.js
parente44682821c37fdf3d4fd8cb58dcf5c34181ddbde (diff)
downloadmongo-eb41492c6f1228077b92239524e4a607b70cd8e3.tar.gz
SERVER-13190 migrate replset jstest suite to use write commands api
Diffstat (limited to 'jstests/replsets/auth2.js')
-rw-r--r--jstests/replsets/auth2.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/jstests/replsets/auth2.js b/jstests/replsets/auth2.js
index 8287928c008..cd20f1ceae6 100644
--- a/jstests/replsets/auth2.js
+++ b/jstests/replsets/auth2.js
@@ -28,11 +28,7 @@ var setupReplSet = function() {
var checkNoAuth = function() {
print("without an admin user, things should work");
- master.getDB("foo").bar.insert({x:1});
- var result = master.getDB("admin").runCommand({getLastError:1});
-
- printjson(result);
- assert.eq(result.err, null);
+ assert.writeOK(master.getDB("foo").bar.insert({ x: 1 }));
}
var checkInvalidAuthStates = function() {