summaryrefslogtreecommitdiff
path: root/jstests/connection_status.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/connection_status.js')
-rw-r--r--jstests/connection_status.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/connection_status.js b/jstests/connection_status.js
index 0c89840967d..7485d9be963 100644
--- a/jstests/connection_status.js
+++ b/jstests/connection_status.js
@@ -5,7 +5,7 @@ var myDB = db.getSiblingDB(dbName);
myDB.dropAllUsers();
function test(userName) {
- myDB.addUser(userName, "weak password", jsTest.basicUserRoles);
+ myDB.addUser({user: userName, pwd: "weak password", roles: jsTest.basicUserRoles});
myDB.auth(userName, "weak password");
var output = myDB.runCommand("connectionStatus");