diff options
Diffstat (limited to 'jstests/sharding/stats.js')
-rw-r--r-- | jstests/sharding/stats.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/stats.js b/jstests/sharding/stats.js index 8354b00114f..0f9f00a667c 100644 --- a/jstests/sharding/stats.js +++ b/jstests/sharding/stats.js @@ -37,7 +37,7 @@ s.adminCommand({ var bulk = db.foo.initializeUnorderedBulkOp(); for (i = 0; i < N; i++) bulk.insert({_id: i}); -assert.writeOK(bulk.execute()); +assert.commandWorked(bulk.execute()); // Flush all writes to disk since some of the stats are dependent on state in disk (like // totalIndexSize). |