diff options
Diffstat (limited to 'jstests/noPassthroughWithMongod/bench_test_crud_commands.js')
-rw-r--r-- | jstests/noPassthroughWithMongod/bench_test_crud_commands.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthroughWithMongod/bench_test_crud_commands.js b/jstests/noPassthroughWithMongod/bench_test_crud_commands.js index e6db1e1bcb9..24b7f8858ef 100644 --- a/jstests/noPassthroughWithMongod/bench_test_crud_commands.js +++ b/jstests/noPassthroughWithMongod/bench_test_crud_commands.js @@ -42,7 +42,7 @@ function testInsert(docs, writeCmd, wc) { function testFind(readCmd) { coll.drop(); for (var i = 0; i < 100; i++) { - assert.writeOK(coll.insert({})); + assert.commandWorked(coll.insert({})); } var res = executeBenchRun([ @@ -54,7 +54,7 @@ function testFind(readCmd) { function testFindOne(readCmd) { coll.drop(); for (var i = 0; i < 100; i++) { - assert.writeOK(coll.insert({})); + assert.commandWorked(coll.insert({})); } var res = |