diff options
Diffstat (limited to 'jstests/readonly/lib/read_only_test.js')
-rw-r--r-- | jstests/readonly/lib/read_only_test.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/jstests/readonly/lib/read_only_test.js b/jstests/readonly/lib/read_only_test.js index 0b9b1d44398..dd0b6229ace 100644 --- a/jstests/readonly/lib/read_only_test.js +++ b/jstests/readonly/lib/read_only_test.js @@ -52,11 +52,7 @@ function ShardedFixture() { } ShardedFixture.prototype.runLoadPhase = function runLoadPhase(test) { - this.shardingTest = new ShardingTest({ - nopreallocj: true, - mongos: 1, - shards: this.nShards - }); + this.shardingTest = new ShardingTest({nopreallocj: true, mongos: 1, shards: this.nShards}); this.paths = this.shardingTest.getDBPaths(); @@ -77,9 +73,11 @@ ShardedFixture.prototype.runExecPhase = function runExecPhase(test) { dbpath: this.paths[i] }; - this.shardingTest.restartMongod(i, opts, () => { - makeDirectoryReadOnly(this.paths[i]); - }); + this.shardingTest.restartMongod(i, + opts, + () => { + makeDirectoryReadOnly(this.paths[i]); + }); } jsTest.log("restarting mongos..."); @@ -101,7 +99,6 @@ ShardedFixture.prototype.runExecPhase = function runExecPhase(test) { }; function runReadOnlyTest(test) { - printjson(test); assert.eq(typeof(test.exec), "function"); |