summaryrefslogtreecommitdiff
path: root/jstests/slow1
diff options
context:
space:
mode:
authorMike Grundy <michael.grundy@10gen.com>2016-02-04 12:31:18 -0500
committerMike Grundy <michael.grundy@10gen.com>2016-02-05 15:00:51 -0500
commitc86e2cdec27d7fe90dc8e3f056adff2848dd1839 (patch)
treee9188260a605a192cd2c0ffd65dc68226c3ae671 /jstests/slow1
parentf768da59c3c4bbee218355e2c9c7bdd1df266ff4 (diff)
downloadmongo-c86e2cdec27d7fe90dc8e3f056adff2848dd1839.tar.gz
SERVER-22341 fix jslint errors in jstests/slow1 with eslint --fix
Diffstat (limited to 'jstests/slow1')
-rw-r--r--jstests/slow1/memory.js2
-rw-r--r--jstests/slow1/sharding_multiple_collections.js16
2 files changed, 9 insertions, 9 deletions
diff --git a/jstests/slow1/memory.js b/jstests/slow1/memory.js
index 48265e77b31..a2f84fddc6c 100644
--- a/jstests/slow1/memory.js
+++ b/jstests/slow1/memory.js
@@ -17,7 +17,7 @@ db.system.js.save( { "_id" : "f1", "value" : function(n) {
b.push(Math.random());
c.push(Math.random());
}
-} })
+} });
// do mix of calls to make sure OOM is handled with no permanent damage
db.eval("f1(10)");
diff --git a/jstests/slow1/sharding_multiple_collections.js b/jstests/slow1/sharding_multiple_collections.js
index ca13cbc3c40..25bf8353ceb 100644
--- a/jstests/slow1/sharding_multiple_collections.js
+++ b/jstests/slow1/sharding_multiple_collections.js
@@ -7,12 +7,12 @@ var s = new ShardingTest({ name: "multcollections",
other: { chunkSize: 1, enableBalancer : true } });
s.adminCommand( { enablesharding : "test" } );
-db = s.getDB( "test" )
+db = s.getDB( "test" );
s.ensurePrimaryShard('test', 'shard0001');
-N = 100000
+N = 100000;
-S = ""
+S = "";
while ( S.length < 500 )
S += "123123312312";
@@ -25,7 +25,7 @@ for ( i=0; i<N; i++ ){
assert.writeOK(bulk.execute());
assert.writeOK(bulk2.execute());
-db.printShardingStatus()
+db.printShardingStatus();
function mytest( coll , i , loopNumber ){
x = coll.find( { _id : i } ).explain();
@@ -34,15 +34,15 @@ function mytest( coll , i , loopNumber ){
throw Error( "can't find " + i + " in " + coll.getName() + " on loopNumber: " + loopNumber + " explain: " + tojson( x ) );
}
-loopNumber = 0
+loopNumber = 0;
while ( 1 ){
for ( i=0; i<N; i++ ){
mytest( db.foo , i , loopNumber );
mytest( db.bar , i , loopNumber );
if ( i % 1000 == 0 )
- print( i )
+ print( i );
}
- db.printShardingStatus()
+ db.printShardingStatus();
loopNumber++;
if ( loopNumber == 1 ){
@@ -53,7 +53,7 @@ while ( 1 ){
assert( loopNumber < 1000 , "taking too long" );
if ( s.chunkDiff( "foo" ) < 12 && s.chunkDiff( "bar" ) < 12 )
- break
+ break;
}
s.stop();