diff options
Diffstat (limited to 'jstests/aggregation/use_query_sort.js')
-rw-r--r-- | jstests/aggregation/use_query_sort.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/aggregation/use_query_sort.js b/jstests/aggregation/use_query_sort.js index af9338be79e..8dbbc0c41ec 100644 --- a/jstests/aggregation/use_query_sort.js +++ b/jstests/aggregation/use_query_sort.js @@ -16,7 +16,7 @@ const bulk = coll.initializeUnorderedBulkOp(); for (let i = 0; i < 100; ++i) { bulk.insert({_id: i, x: "string", a: -i, y: i % 2}); } -assert.writeOK(bulk.execute()); +assert.commandWorked(bulk.execute()); function assertHasNonBlockingQuerySort(pipeline) { const explainOutput = coll.explain().aggregate(pipeline); |