summaryrefslogtreecommitdiff
path: root/jstests/auth/server-4892.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/server-4892.js')
-rw-r--r--jstests/auth/server-4892.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/auth/server-4892.js b/jstests/auth/server-4892.js
index bfa51347fe1..b256b42b822 100644
--- a/jstests/auth/server-4892.js
+++ b/jstests/auth/server-4892.js
@@ -56,7 +56,7 @@ withMongod({noauth: ""}, function setupTest(mongod) {
somedb.createUser({user: 'frim', pwd: 'fram', roles: jsTest.basicUserRoles});
somedb.data.drop();
for (var i = 0; i < 10; ++i) {
- assert.writeOK(somedb.data.insert({val: i}));
+ assert.commandWorked(somedb.data.insert({val: i}));
}
admin.logout();
});