summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/benchrun_substitution.js
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@mongodb.com>2019-08-14 13:52:59 +0000
committerevergreen <evergreen@mongodb.com>2019-08-14 13:52:59 +0000
commit39c3a5d77b976e131d37476f2e7255d6058f5093 (patch)
tree01cc28719f215b17196ec913f475cd8efda9b37d /jstests/noPassthroughWithMongod/benchrun_substitution.js
parent69d0dd1dc4fb1f78d21c47aa5dd82aa9077b69eb (diff)
downloadmongo-39c3a5d77b976e131d37476f2e7255d6058f5093.tar.gz
SERVER-42773 Replace uses of the assert.writeOK() Javascript assertion with assert.commandWorked()
Diffstat (limited to 'jstests/noPassthroughWithMongod/benchrun_substitution.js')
-rw-r--r--jstests/noPassthroughWithMongod/benchrun_substitution.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthroughWithMongod/benchrun_substitution.js b/jstests/noPassthroughWithMongod/benchrun_substitution.js
index b8562040e11..8d8eee3cc09 100644
--- a/jstests/noPassthroughWithMongod/benchrun_substitution.js
+++ b/jstests/noPassthroughWithMongod/benchrun_substitution.js
@@ -40,7 +40,7 @@ function benchrun_sub_update(use_write_command) {
}];
for (var i = 0; i < 100; ++i) {
- assert.writeOK(t.insert({x: i}));
+ assert.commandWorked(t.insert({x: i}));
}
res = benchRun({parallel: 1, seconds: 10, ops: ops, host: db.getMongo().host});
@@ -65,7 +65,7 @@ function benchrun_sub_remove(use_write_command) {
}];
for (var i = 0; i < 100; ++i) {
- assert.writeOK(t.insert({x: i}));
+ assert.commandWorked(t.insert({x: i}));
}
res = benchRun({parallel: 1, seconds: 10, ops: ops, host: db.getMongo().host});