summaryrefslogtreecommitdiff
path: root/jstests/sharding/unsharded_collection_targetting.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/unsharded_collection_targetting.js')
-rw-r--r--jstests/sharding/unsharded_collection_targetting.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/unsharded_collection_targetting.js b/jstests/sharding/unsharded_collection_targetting.js
index 5393a212ae4..4ae771e3d6e 100644
--- a/jstests/sharding/unsharded_collection_targetting.js
+++ b/jstests/sharding/unsharded_collection_targetting.js
@@ -22,11 +22,11 @@ st.ensurePrimaryShard(mongosDB.getName(), st.rs1.getURL());
// about the location of the collection before the move.
const mongos2DB = st.s1.getDB(testName);
const mongos2Coll = mongos2DB[testName];
-assert.writeOK(mongos2Coll.insert({_id: 0, a: 0}));
+assert.commandWorked(mongos2Coll.insert({_id: 0, a: 0}));
st.ensurePrimaryShard(mongosDB.getName(), st.rs0.getURL());
-assert.writeOK(mongos2Coll.insert({_id: 1, a: 0}));
+assert.commandWorked(mongos2Coll.insert({_id: 1, a: 0}));
st.stop();
})();