summaryrefslogtreecommitdiff
path: root/jstests/readonly
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
commit6dcdd23dd37ef12c87e71cf59ef01cd82432efe0 (patch)
treec8cfb5acb62c80f375bc37e7d4350382deea6a37 /jstests/readonly
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'jstests/readonly')
-rw-r--r--jstests/readonly/geo.js5
-rw-r--r--jstests/readonly/lib/read_only_test.js19
2 files changed, 6 insertions, 18 deletions
diff --git a/jstests/readonly/geo.js b/jstests/readonly/geo.js
index 73e91c64eeb..13705af0408 100644
--- a/jstests/readonly/geo.js
+++ b/jstests/readonly/geo.js
@@ -24,10 +24,7 @@ runReadOnlyTest(function() {
name: "The Counting Room",
loc: {type: "Point", coordinates: [40.7209601, -73.9588041]}
},
- {
- name: "Kinfolk 94",
- loc: {type: "Point", coordinates: [40.7217058, -73.9605489]}
- }
+ {name: "Kinfolk 94", loc: {type: "Point", coordinates: [40.7217058, -73.9605489]}}
];
writableCollection.insertMany(locDocs);
diff --git a/jstests/readonly/lib/read_only_test.js b/jstests/readonly/lib/read_only_test.js
index 37802ee66d2..e3b68671966 100644
--- a/jstests/readonly/lib/read_only_test.js
+++ b/jstests/readonly/lib/read_only_test.js
@@ -34,11 +34,7 @@ var StandaloneFixture, ShardedFixture, runReadOnlyTest, zip2, cycleN;
try {
makeDirectoryReadOnly(this.dbpath);
- var options = {
- queryableBackupMode: "",
- noCleanData: true,
- dbpath: this.dbpath
- };
+ var options = {queryableBackupMode: "", noCleanData: true, dbpath: this.dbpath};
this.mongod = MongoRunner.runMongod(options);
@@ -71,17 +67,12 @@ var StandaloneFixture, ShardedFixture, runReadOnlyTest, zip2, cycleN;
jsTest.log("restarting shards...");
try {
for (var i = 0; i < this.nShards; ++i) {
- var opts = {
- queryableBackupMode: "",
- dbpath: this.paths[i]
- };
+ var opts = {queryableBackupMode: "", dbpath: this.paths[i]};
assert.commandWorked(this.shardingTest["d" + i].getDB("local").dropDatabase());
- this.shardingTest.restartMongod(i,
- opts,
- () => {
- makeDirectoryReadOnly(this.paths[i]);
- });
+ this.shardingTest.restartMongod(i, opts, () => {
+ makeDirectoryReadOnly(this.paths[i]);
+ });
}
jsTest.log("restarting mongos...");