diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-07-01 11:27:40 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-07-01 14:53:15 -0400 |
commit | 50962f5188cc1d0cdc0e06c3d0aef0f1f84ebc53 (patch) | |
tree | 6c83cb0e7fa58f86eef9111a56fd64a720981ef9 | |
parent | 64f066468c5d708d17321a44a1ded85002b4fe30 (diff) | |
download | mongo-50962f5188cc1d0cdc0e06c3d0aef0f1f84ebc53.tar.gz |
Fix some tests to work in parallel suite by dropping system.users at the beginning of the test
-rw-r--r-- | jstests/connection_status.js | 1 | ||||
-rw-r--r-- | jstests/profile3.js | 1 | ||||
-rw-r--r-- | jstests/profile4.js | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/jstests/connection_status.js b/jstests/connection_status.js index 7a1e7f9fbfa..c3da02e1c4b 100644 --- a/jstests/connection_status.js +++ b/jstests/connection_status.js @@ -2,6 +2,7 @@ var dbName = 'connection_status'; var myDB = db.getSiblingDB(dbName); +myDB.system.users.remove({}); function test(userName) { myDB.addUser(userName, "weak password"); diff --git a/jstests/profile3.js b/jstests/profile3.js index 42a1a5ecbb6..2399c2e2c70 100644 --- a/jstests/profile3.js +++ b/jstests/profile3.js @@ -3,6 +3,7 @@ var stddb = db; var db = db.getSisterDB("profile3"); +db.system.users.remove({}); t = db.profile3; t.drop(); diff --git a/jstests/profile4.js b/jstests/profile4.js index 8ec356a39f5..a302e34fee7 100644 --- a/jstests/profile4.js +++ b/jstests/profile4.js @@ -4,6 +4,7 @@ var stddb = db; var db = db.getSisterDB("profile4"); +db.system.users.remove({}); t = db.profile4; t.drop(); |