diff options
Diffstat (limited to 'jstests/sharding/scaled_collection_stats.js')
-rw-r--r-- | jstests/sharding/scaled_collection_stats.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/sharding/scaled_collection_stats.js b/jstests/sharding/scaled_collection_stats.js index a424d190f90..30bebf5b53d 100644 --- a/jstests/sharding/scaled_collection_stats.js +++ b/jstests/sharding/scaled_collection_stats.js @@ -23,7 +23,8 @@ st.ensurePrimaryShard(dbName, st.shard0.shardName); assert.commandWorked(st.s.adminCommand({enableSharding: dbName})); assert.commandWorked(st.s.adminCommand({shardCollection: ns, key: {_id: 1}})); assert.commandWorked(st.s.adminCommand({split: ns, middle: {_id: 0}})); -assert.commandWorked(st.s.adminCommand({moveChunk: ns, find: {_id: 0}, to: st.shard1.shardName})); +assert.commandWorked(st.s.adminCommand( + {moveChunk: ns, find: {_id: 0}, to: st.shard1.shardName, _waitForDelete: true})); // Determine the unscaled index size. let res = assert.commandWorked(coll.stats()); |