summaryrefslogtreecommitdiff
path: root/jstests/sharding/addshard5.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/addshard5.js')
-rw-r--r--jstests/sharding/addshard5.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/addshard5.js b/jstests/sharding/addshard5.js
index 31d2c10f505..7a2b6866c8c 100644
--- a/jstests/sharding/addshard5.js
+++ b/jstests/sharding/addshard5.js
@@ -17,7 +17,7 @@ st.ensurePrimaryShard(coll.getDB().getName(), st.shard0.shardName);
assert.commandWorked(mongos.adminCommand({shardCollection: coll + '', key: {_id: 1}}));
// Insert one document
-assert.writeOK(coll.insert({hello: 'world'}));
+assert.commandWorked(coll.insert({hello: 'world'}));
// Migrate the collection to and from shard1 so shard0 loads the shard1 host
assert.commandWorked(mongos.adminCommand(