summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/currentop_includes_await_time.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/currentop_includes_await_time.js')
-rw-r--r--jstests/noPassthrough/currentop_includes_await_time.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthrough/currentop_includes_await_time.js b/jstests/noPassthrough/currentop_includes_await_time.js
index 5a5dee2f5ce..45506e05726 100644
--- a/jstests/noPassthrough/currentop_includes_await_time.js
+++ b/jstests/noPassthrough/currentop_includes_await_time.js
@@ -17,7 +17,7 @@ const coll = testDB.currentop_includes_await_time;
coll.drop();
assert.commandWorked(testDB.createCollection(coll.getName(), {capped: true, size: 1024}));
-assert.writeOK(coll.insert({_id: 1}));
+assert.commandWorked(coll.insert({_id: 1}));
let cmdRes = assert.commandWorked(
testDB.runCommand({find: coll.getName(), tailable: true, awaitData: true}));
@@ -46,7 +46,7 @@ assert.soon(function() {
// A capped insertion should unblock the getMore, allowing the test to complete before the
// getMore's awaitData time expires.
-assert.writeOK(coll.insert({_id: 2}));
+assert.commandWorked(coll.insert({_id: 2}));
cleanupShell();
MongoRunner.stopMongod(conn);