Skip to content

Commit c86e2cd

Browse files
author
Mike Grundy
committed
SERVER-22341 fix jslint errors in jstests/slow1 with eslint --fix
1 parent f768da5 commit c86e2cd

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

jstests/slow1/memory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ db.system.js.save( { "_id" : "f1", "value" : function(n) {
1717
b.push(Math.random());
1818
c.push(Math.random());
1919
}
20-
} })
20+
} });
2121

2222
// do mix of calls to make sure OOM is handled with no permanent damage
2323
db.eval("f1(10)");

jstests/slow1/sharding_multiple_collections.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ var s = new ShardingTest({ name: "multcollections",
77
other: { chunkSize: 1, enableBalancer : true } });
88

99
s.adminCommand( { enablesharding : "test" } );
10-
db = s.getDB( "test" )
10+
db = s.getDB( "test" );
1111
s.ensurePrimaryShard('test', 'shard0001');
1212

13-
N = 100000
13+
N = 100000;
1414

15-
S = ""
15+
S = "";
1616
while ( S.length < 500 )
1717
S += "123123312312";
1818

@@ -25,7 +25,7 @@ for ( i=0; i<N; i++ ){
2525
assert.writeOK(bulk.execute());
2626
assert.writeOK(bulk2.execute());
2727

28-
db.printShardingStatus()
28+
db.printShardingStatus();
2929

3030
function mytest( coll , i , loopNumber ){
3131
x = coll.find( { _id : i } ).explain();
@@ -34,15 +34,15 @@ function mytest( coll , i , loopNumber ){
3434
throw Error( "can't find " + i + " in " + coll.getName() + " on loopNumber: " + loopNumber + " explain: " + tojson( x ) );
3535
}
3636

37-
loopNumber = 0
37+
loopNumber = 0;
3838
while ( 1 ){
3939
for ( i=0; i<N; i++ ){
4040
mytest( db.foo , i , loopNumber );
4141
mytest( db.bar , i , loopNumber );
4242
if ( i % 1000 == 0 )
43-
print( i )
43+
print( i );
4444
}
45-
db.printShardingStatus()
45+
db.printShardingStatus();
4646
loopNumber++;
4747

4848
if ( loopNumber == 1 ){
@@ -53,7 +53,7 @@ while ( 1 ){
5353
assert( loopNumber < 1000 , "taking too long" );
5454

5555
if ( s.chunkDiff( "foo" ) < 12 && s.chunkDiff( "bar" ) < 12 )
56-
break
56+
break;
5757
}
5858

5959
s.stop();

0 commit comments

Comments
 (0)