summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs/server21632.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/aggregation/bugs/server21632.js')
-rw-r--r--jstests/aggregation/bugs/server21632.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/aggregation/bugs/server21632.js b/jstests/aggregation/bugs/server21632.js
index c23d8836bea..d0b64d88437 100644
--- a/jstests/aggregation/bugs/server21632.js
+++ b/jstests/aggregation/bugs/server21632.js
@@ -41,7 +41,7 @@ assert.eq([], coll.aggregate([{$sample: {size: 10}}]).toArray());
// If there is only one document, we should get that document.
var paddingStr = "abcdefghijklmnopqrstuvwxyz";
var firstDoc = {_id: 0, paddingStr: paddingStr};
-assert.writeOK(coll.insert(firstDoc));
+assert.commandWorked(coll.insert(firstDoc));
assert.eq([firstDoc], coll.aggregate([{$sample: {size: 1}}]).toArray());
assert.eq([firstDoc], coll.aggregate([{$sample: {size: 10}}]).toArray());