summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/indexbg_killop_primary.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/indexbg_killop_primary.js')
-rw-r--r--jstests/noPassthrough/indexbg_killop_primary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/indexbg_killop_primary.js b/jstests/noPassthrough/indexbg_killop_primary.js
index 27042c77b5b..cad36b1f688 100644
--- a/jstests/noPassthrough/indexbg_killop_primary.js
+++ b/jstests/noPassthrough/indexbg_killop_primary.js
@@ -26,7 +26,7 @@ const primary = rst.getPrimary();
const testDB = primary.getDB('test');
const coll = testDB.getCollection('test');
-assert.writeOK(coll.insert({a: 1}));
+assert.commandWorked(coll.insert({a: 1}));
IndexBuildTest.pauseIndexBuilds(primary);