summaryrefslogtreecommitdiff
path: root/jstests/sharding/config_rs_no_primary.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/config_rs_no_primary.js')
-rw-r--r--jstests/sharding/config_rs_no_primary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/config_rs_no_primary.js b/jstests/sharding/config_rs_no_primary.js
index 6b7c7155a6e..41d74869930 100644
--- a/jstests/sharding/config_rs_no_primary.js
+++ b/jstests/sharding/config_rs_no_primary.js
@@ -35,7 +35,7 @@ var testOps = function(mongos) {
jsTestLog("Doing ops that don't require metadata writes and thus should succeed against: " +
mongos);
var initialCount = mongos.getDB('test').foo.count();
- assert.writeOK(mongos.getDB('test').foo.insert({a: 1}));
+ assert.commandWorked(mongos.getDB('test').foo.insert({a: 1}));
assert.eq(initialCount + 1, mongos.getDB('test').foo.count());
assert.throws(function() {