summaryrefslogtreecommitdiff
path: root/jstests/concurrency/fsm_workloads/auth_drop_user.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/concurrency/fsm_workloads/auth_drop_user.js')
-rw-r--r--jstests/concurrency/fsm_workloads/auth_drop_user.js13
1 files changed, 4 insertions, 9 deletions
diff --git a/jstests/concurrency/fsm_workloads/auth_drop_user.js b/jstests/concurrency/fsm_workloads/auth_drop_user.js
index 96f41eb4160..65cb8e41da2 100644
--- a/jstests/concurrency/fsm_workloads/auth_drop_user.js
+++ b/jstests/concurrency/fsm_workloads/auth_drop_user.js
@@ -26,11 +26,7 @@ var $config = (function() {
function createAndDropUser(db, collName) {
var username = uniqueUsername(this.prefix, this.tid, this.num++);
- db.createUser({
- user: username,
- pwd: 'password',
- roles: ['readWrite', 'dbAdmin']
- });
+ db.createUser({user: username, pwd: 'password', roles: ['readWrite', 'dbAdmin']});
var res = db.getUser(username);
assertAlways(res !== null, "user '" + username + "' should exist");
@@ -38,8 +34,7 @@ var $config = (function() {
assertAlways.eq(db.getName(), res.db);
assertAlways(db.dropUser(username));
- assertAlways.isnull(db.getUser(username),
- "user '" + username + "' should not exist");
+ assertAlways.isnull(db.getUser(username), "user '" + username + "' should not exist");
}
return {
@@ -50,8 +45,8 @@ var $config = (function() {
})();
var transitions = {
- init: { createAndDropUser: 1 },
- createAndDropUser: { createAndDropUser: 1 }
+ init: {createAndDropUser: 1},
+ createAndDropUser: {createAndDropUser: 1}
};
return {