diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:17:50 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:18:14 -0500 |
commit | 4ae691e8edc87d0e3cfb633bb91c328426be007b (patch) | |
tree | 52079a593f54382ca13a2e741633eab1b6271893 /jstests/noPassthrough/wt_nojournal_fsync.js | |
parent | a025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff) | |
download | mongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz |
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/noPassthrough/wt_nojournal_fsync.js')
-rw-r--r-- | jstests/noPassthrough/wt_nojournal_fsync.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/jstests/noPassthrough/wt_nojournal_fsync.js b/jstests/noPassthrough/wt_nojournal_fsync.js index a6e4f5b07ff..e5be8b9659e 100644 --- a/jstests/noPassthrough/wt_nojournal_fsync.js +++ b/jstests/noPassthrough/wt_nojournal_fsync.js @@ -7,34 +7,34 @@ */ function writeDataAndRestart(doFsync) { - jsTestLog("add some data"); - for (var i=0; i<100; i++) { - conn.getDB(name).foo.insert({x:i}); + for (var i = 0; i < 100; i++) { + conn.getDB(name).foo.insert({x: i}); } if (doFsync) { jsTestLog("run fsync on the node"); - assert.commandWorked(conn.getDB("admin").runCommand({fsync : 1})); + assert.commandWorked(conn.getDB("admin").runCommand({fsync: 1})); } jsTestLog("kill -9"); MongoRunner.stopMongod(conn, /*signal*/ 9); jsTestLog("restart node"); - conn = MongoRunner.runMongod({restart: true, - port: conn.port, - cleanData: false, - storageEngine: "wiredTiger", - nojournal: ""}); + conn = MongoRunner.runMongod({ + restart: true, + port: conn.port, + cleanData: false, + storageEngine: "wiredTiger", + nojournal: "" + }); return conn; } // This test can only be run if the storageEngine is wiredTiger if (jsTest.options().storageEngine && jsTest.options().storageEngine !== "wiredTiger") { jsTestLog("Skipping test because storageEngine is not wiredTiger"); -} -else { +} else { var name = "wt_nojournal_fsync"; jsTestLog("run mongod without journaling"); |