summaryrefslogtreecommitdiff
path: root/jstests/sharding/create_idx_empty_primary.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/create_idx_empty_primary.js')
-rw-r--r--jstests/sharding/create_idx_empty_primary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/create_idx_empty_primary.js b/jstests/sharding/create_idx_empty_primary.js
index f11ffd13f2a..86b81983a43 100644
--- a/jstests/sharding/create_idx_empty_primary.js
+++ b/jstests/sharding/create_idx_empty_primary.js
@@ -15,7 +15,7 @@ assert.commandWorked(testDB.adminCommand({shardcollection: 'test.user', key: {_i
assert.commandWorked(
testDB.adminCommand({movechunk: 'test.user', find: {_id: 0}, to: st.shard0.shardName}));
-assert.writeOK(testDB.user.insert({_id: 0}));
+assert.commandWorked(testDB.user.insert({_id: 0}));
var res = testDB.user.ensureIndex({i: 1});
assert.commandWorked(res);