summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2015-05-07 12:17:16 -0400
committerMathias Stearn <mathias@10gen.com>2015-05-15 17:54:49 -0400
commitb9a9539e6f39416fc9cc24bdcdc66092d801d52f (patch)
tree545cab6a9411f1d714c5d34e0d96a9b4a782a358
parenta623935ccde96bbe77c893111b983e433091e662 (diff)
downloadmongo-b9a9539e6f39416fc9cc24bdcdc66092d801d52f.tar.gz
Make it safe to run evalb.js multiple times without clearing data
-rw-r--r--jstests/core/evalb.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/core/evalb.js b/jstests/core/evalb.js
index 0caae39498b..5e8fac05537 100644
--- a/jstests/core/evalb.js
+++ b/jstests/core/evalb.js
@@ -16,6 +16,7 @@ function lastOp() {
try {
username = 'jstests_evalb_user';
+ db.dropUser(username);
db.createUser({user: username, pwd: 'password', roles: jsTest.basicUserRoles});
db.auth( username, 'password' );