summaryrefslogtreecommitdiff
path: root/jstests/gle/sync4.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/gle/sync4.js')
-rw-r--r--jstests/gle/sync4.js22
1 files changed, 9 insertions, 13 deletions
diff --git a/jstests/gle/sync4.js b/jstests/gle/sync4.js
index a33f9b8a132..01b98eb1221 100644
--- a/jstests/gle/sync4.js
+++ b/jstests/gle/sync4.js
@@ -1,26 +1,22 @@
// TODO: remove test after we deprecate SyncClusterConnection
-test = new SyncCCTest( "sync4" );
+test = new SyncCCTest("sync4");
if (test.conn.writeMode() == 'commands') {
jsTest.log('Skipping test not compatible with write commands');
-}
-else {
-
- db = test.conn.getDB( "test" );
+} else {
+ db = test.conn.getDB("test");
t = db.sync4;
- for ( i=0; i<1000; i++ ){
- t.insert( { _id : i , x : "asdasdsdasdas" } );
+ for (i = 0; i < 1000; i++) {
+ t.insert({_id: i, x: "asdasdsdasdas"});
}
db.getLastError();
- test.checkHashes( "test" , "A0" );
- assert.eq( 1000 , t.find().count() , "A1" );
- assert.eq( 1000 , t.find().itcount() , "A2" );
- assert.eq( 1000 , t.find().snapshot().batchSize(10).itcount() , "A2" );
+ test.checkHashes("test", "A0");
+ assert.eq(1000, t.find().count(), "A1");
+ assert.eq(1000, t.find().itcount(), "A2");
+ assert.eq(1000, t.find().snapshot().batchSize(10).itcount(), "A2");
test.stop();
-
}
-