summaryrefslogtreecommitdiff
path: root/jstests/replsets/localhostAuthBypass.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/localhostAuthBypass.js')
-rw-r--r--jstests/replsets/localhostAuthBypass.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/localhostAuthBypass.js b/jstests/replsets/localhostAuthBypass.js
index 1384bb875fc..eef40c4a774 100644
--- a/jstests/replsets/localhostAuthBypass.js
+++ b/jstests/replsets/localhostAuthBypass.js
@@ -11,7 +11,7 @@ var password = "bar";
var addUser = function(mongo) {
print("============ adding a user.");
- mongo.getDB("admin").addUser(username, password);
+ mongo.getDB("admin").addUser(username, password, jsTest.adminUserRoles);
};
var assertCannotRunCommands = function(mongo) {