summaryrefslogtreecommitdiff
path: root/jstests/auth/renameRestrictedCollections.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/renameRestrictedCollections.js')
-rw-r--r--jstests/auth/renameRestrictedCollections.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/auth/renameRestrictedCollections.js b/jstests/auth/renameRestrictedCollections.js
index 40169bef2d6..793f5fb5b07 100644
--- a/jstests/auth/renameRestrictedCollections.js
+++ b/jstests/auth/renameRestrictedCollections.js
@@ -85,10 +85,10 @@ assert.eq(1, res.ok, tojson(res));
// Start with test against inserting to and renaming collections in config and local
// as userAdminAnyDatabase.
-assert.writeOK(configDB.test.insert({'a': 1}));
+assert.commandWorked(configDB.test.insert({'a': 1}));
assert.commandWorked(configDB.test.renameCollection('test2'));
-assert.writeOK(localDB.test.insert({'a': 1}));
+assert.commandWorked(localDB.test.insert({'a': 1}));
assert.commandWorked(localDB.test.renameCollection('test2'));
adminDB.logout();