summaryrefslogtreecommitdiff
path: root/jstests/core/minmax_edge.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/minmax_edge.js')
-rw-r--r--jstests/core/minmax_edge.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/jstests/core/minmax_edge.js b/jstests/core/minmax_edge.js
index 081af7a347e..135d83337c3 100644
--- a/jstests/core/minmax_edge.js
+++ b/jstests/core/minmax_edge.js
@@ -35,17 +35,17 @@ function verifyResultIds(results, expectedIds) {
*/
function reset(t) {
t.drop();
- assert.writeOK(t.insert({_id: 0, a: 1, b: 1}));
- assert.writeOK(t.insert({_id: 1, a: 1, b: 2}));
- assert.writeOK(t.insert({_id: 2, a: 1, b: 3}));
+ assert.commandWorked(t.insert({_id: 0, a: 1, b: 1}));
+ assert.commandWorked(t.insert({_id: 1, a: 1, b: 2}));
+ assert.commandWorked(t.insert({_id: 2, a: 1, b: 3}));
- assert.writeOK(t.insert({_id: 3, a: 2, b: 1}));
- assert.writeOK(t.insert({_id: 4, a: 2, b: 2}));
- assert.writeOK(t.insert({_id: 5, a: 2, b: 3}));
+ assert.commandWorked(t.insert({_id: 3, a: 2, b: 1}));
+ assert.commandWorked(t.insert({_id: 4, a: 2, b: 2}));
+ assert.commandWorked(t.insert({_id: 5, a: 2, b: 3}));
- assert.writeOK(t.insert({_id: 6, a: 3, b: 1}));
- assert.writeOK(t.insert({_id: 7, a: 3, b: 2}));
- assert.writeOK(t.insert({_id: 8, a: 3, b: 3}));
+ assert.commandWorked(t.insert({_id: 6, a: 3, b: 1}));
+ assert.commandWorked(t.insert({_id: 7, a: 3, b: 2}));
+ assert.commandWorked(t.insert({_id: 8, a: 3, b: 3}));
}
// Two helpers to save typing