summaryrefslogtreecommitdiff
path: root/jstests/sharding/auto2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/auto2.js')
-rw-r--r--jstests/sharding/auto2.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/jstests/sharding/auto2.js b/jstests/sharding/auto2.js
index b0ce66292d5..0fc17a55124 100644
--- a/jstests/sharding/auto2.js
+++ b/jstests/sharding/auto2.js
@@ -1,6 +1,9 @@
-// auto2.js
+(function() {
-s = new ShardingTest( "auto2" , 2 , 1 , 2 );
+var s = new ShardingTest({ name: "auto2",
+ shards: 2,
+ mongos: 2,
+ verbose: 1 });
s.adminCommand( { enablesharding : "test" } );
s.ensurePrimaryShard('test', 'shard0001');
@@ -83,8 +86,6 @@ for ( i=0; i<j*100; i++ ){
}
}
-
-
s.printChangeLog();
print( "missing: " + tojson( missing ) )
@@ -147,3 +148,5 @@ assert.throws( function(){ s.getDB( "test" ).foo.find().sort( { s : 1 } ).forEac
print( "checkpoint G")
s.stop();
+
+})();