summaryrefslogtreecommitdiff
path: root/jstests/replsets/index_restart_secondary.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/index_restart_secondary.js')
-rw-r--r--jstests/replsets/index_restart_secondary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/index_restart_secondary.js b/jstests/replsets/index_restart_secondary.js
index 0b391d5f8e2..d785a394ee3 100644
--- a/jstests/replsets/index_restart_secondary.js
+++ b/jstests/replsets/index_restart_secondary.js
@@ -42,7 +42,7 @@ if (conns[0].getDB('test').serverBuildInfo().bits !== 32) {
for (var i = 0; i < size; ++i) {
bulk.insert({i: i});
}
- assert.writeOK(bulk.execute({w: "majority"}));
+ assert.commandWorked(bulk.execute({w: "majority"}));
jsTest.log("Creating index");
masterDB.jstests_fgsec.ensureIndex({i: 1});