summaryrefslogtreecommitdiff
path: root/jstests/replsets/oplog_term.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/oplog_term.js')
-rw-r--r--jstests/replsets/oplog_term.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/oplog_term.js b/jstests/replsets/oplog_term.js
index f21e01f4a98..b3de5b8c57d 100644
--- a/jstests/replsets/oplog_term.js
+++ b/jstests/replsets/oplog_term.js
@@ -12,7 +12,7 @@ replSet.waitForState(replSet.nodes[0], ReplSetTest.State.PRIMARY, 5 * 1000);
// Default protocol version is 1 - 'term' field should present in oplog entry.
var primary = replSet.getPrimary();
var collection = primary.getDB('test').getCollection(name);
-assert.writeOK(collection.save({_id: 1}));
+assert.commandWorked(collection.save({_id: 1}));
var oplogEntry = getLatestOp(primary);
assert(oplogEntry, 'unexpected empty oplog');