summaryrefslogtreecommitdiff
path: root/jstests/sharding/sharded_profile.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/sharded_profile.js')
-rw-r--r--jstests/sharding/sharded_profile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/sharded_profile.js b/jstests/sharding/sharded_profile.js
index c38b178f73a..2f2289182e5 100644
--- a/jstests/sharding/sharded_profile.js
+++ b/jstests/sharding/sharded_profile.js
@@ -23,7 +23,7 @@ var profileColl = st.shard0.getDB(coll.getDB().toString()).system.profile;
var inserts = [{_id: 0}, {_id: 1}, {_id: 2}];
-assert.writeOK(st.s1.getCollection(coll.toString()).insert(inserts));
+assert.commandWorked(st.s1.getCollection(coll.toString()).insert(inserts));
profileEntry = profileColl.findOne();
assert.neq(null, profileEntry);