summaryrefslogtreecommitdiff
path: root/jstests/replsets/libs/election_handoff.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/libs/election_handoff.js')
-rw-r--r--jstests/replsets/libs/election_handoff.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/libs/election_handoff.js b/jstests/replsets/libs/election_handoff.js
index f05e6b702d7..f29f55853bd 100644
--- a/jstests/replsets/libs/election_handoff.js
+++ b/jstests/replsets/libs/election_handoff.js
@@ -50,7 +50,7 @@ var ElectionHandoffTest = (function() {
// Make sure all secondaries are ready before stepping down. We must additionally
// make sure that the primary is aware that the secondaries are ready and caught up
// to the primary's lastApplied, so we issue a dummy write and wait on its optime.
- assert.writeOK(primary.getDB("test").secondariesMustBeCaughtUpToHere.insert(
+ assert.commandWorked(primary.getDB("test").secondariesMustBeCaughtUpToHere.insert(
{"a": 1}, {writeConcern: {w: rst.nodes.length}}));
rst.awaitNodesAgreeOnAppliedOpTime();