summaryrefslogtreecommitdiff
path: root/jstests/sharding/auth_copydb.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/auth_copydb.js')
-rw-r--r--jstests/sharding/auth_copydb.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/jstests/sharding/auth_copydb.js b/jstests/sharding/auth_copydb.js
index 8c73214019e..4c215f666f7 100644
--- a/jstests/sharding/auth_copydb.js
+++ b/jstests/sharding/auth_copydb.js
@@ -1,7 +1,8 @@
// Tests the copydb command on mongos with auth
-var runTest = function() {
+(function() {
+ 'use strict';
- var st = new ShardingTest({shards: 1, mongos: 1, keyFile: "jstests/libs/key1"});
+ var st = new ShardingTest({shards: 1, mongos: 1, other: {keyFile: 'jstests/libs/key1'}});
var mongos = st.s0;
var destAdminDB = mongos.getDB('admin');
var destTestDB = mongos.getDB('test');
@@ -36,7 +37,4 @@ var runTest = function() {
assert.eq(1, destTestDB.foo.findOne().a);
st.stop();
-
-};
-
-runTest();
+})();