summaryrefslogtreecommitdiff
path: root/jstests/replsets/prepare_transaction_index_build.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/prepare_transaction_index_build.js')
-rw-r--r--jstests/replsets/prepare_transaction_index_build.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/prepare_transaction_index_build.js b/jstests/replsets/prepare_transaction_index_build.js
index aa5d53673e1..36c5533a08e 100644
--- a/jstests/replsets/prepare_transaction_index_build.js
+++ b/jstests/replsets/prepare_transaction_index_build.js
@@ -29,7 +29,7 @@ const bulk = testColl.initializeUnorderedBulkOp();
for (let i = 0; i < 10; ++i) {
bulk.insert({x: i});
}
-assert.writeOK(bulk.execute());
+assert.commandWorked(bulk.execute());
// activate failpoint to hang index build on secondary.
secondary.getDB("admin").runCommand(