diff options
Diffstat (limited to 'jstests/sharding/secondary_shard_versioning.js')
-rw-r--r-- | jstests/sharding/secondary_shard_versioning.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/secondary_shard_versioning.js b/jstests/sharding/secondary_shard_versioning.js index 94e49c09a5d..a5c684dccb1 100644 --- a/jstests/sharding/secondary_shard_versioning.js +++ b/jstests/sharding/secondary_shard_versioning.js @@ -20,7 +20,7 @@ let freshMongos = st.s0; let staleMongos = st.s1; jsTest.log("do insert from stale mongos to make it load the routing table before the move"); -assert.writeOK(staleMongos.getDB('test').foo.insert({x: 1})); +assert.commandWorked(staleMongos.getDB('test').foo.insert({x: 1})); jsTest.log("do moveChunk from fresh mongos"); assert.commandWorked(freshMongos.adminCommand({ |