summaryrefslogtreecommitdiff
path: root/jstests/auth/getMore.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/getMore.js')
-rw-r--r--jstests/auth/getMore.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/auth/getMore.js b/jstests/auth/getMore.js
index 4495d61200b..c593a35957d 100644
--- a/jstests/auth/getMore.js
+++ b/jstests/auth/getMore.js
@@ -20,9 +20,9 @@ function runTest(conn) {
const testDBName = "auth_getMore";
let testDB = adminDB.getSiblingDB(testDBName);
testDB.dropDatabase();
- assert.writeOK(testDB.foo.insert({_id: 0}));
- assert.writeOK(testDB.foo.insert({_id: 1}));
- assert.writeOK(testDB.foo.insert({_id: 2}));
+ assert.commandWorked(testDB.foo.insert({_id: 0}));
+ assert.commandWorked(testDB.foo.insert({_id: 1}));
+ assert.commandWorked(testDB.foo.insert({_id: 2}));
//
// Test that a user can only run a getMore on a cursor that they created.
@@ -241,7 +241,7 @@ function runTest(conn) {
//
assert.eq(1, adminDB.auth("admin", "admin"));
- assert.writeOK(testDB.bar.insert({_id: 0}));
+ assert.commandWorked(testDB.bar.insert({_id: 0}));
// Create a user "fooUser" on the test database that can read the "foo" collection.
assert.commandWorked(testDB.runCommand({