diff options
Diffstat (limited to 'jstests/sharding/views.js')
-rw-r--r-- | jstests/sharding/views.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/views.js b/jstests/sharding/views.js index 876406902a6..48b724a6a99 100644 --- a/jstests/sharding/views.js +++ b/jstests/sharding/views.js @@ -58,7 +58,7 @@ assert.commandWorked( db.adminCommand({moveChunk: coll.getFullName(), find: {a: 25}, to: st.shard1.shardName})); for (let i = 0; i < 10; ++i) { - assert.writeOK(coll.insert({a: i})); + assert.commandWorked(coll.insert({a: i})); } assert.commandWorked(db.createView("view", coll.getName(), [{$match: {a: {$gte: 4}}}])); |