summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorMike Grundy <michael.grundy@10gen.com>2016-03-17 14:41:31 -0400
committerMike Grundy <michael.grundy@10gen.com>2016-03-21 09:40:53 -0400
commit3be595d20ee01e453339f5fa389fffaa3dc7f6dc (patch)
tree06fd7aebe7886690121e34b161b0d310f00c5ad8 /jstests/noPassthroughWithMongod
parent8d5ceb946b23beda391bc818e978ce7675fcbec3 (diff)
downloadmongo-3be595d20ee01e453339f5fa389fffaa3dc7f6dc.tar.gz
SERVER-23067 Final round of JS linting and formatting
(cherry picked from commit 1be713cebbb9411d2977ec9996931a4508252af0) Conflicts: jstests/aggregation/bugs/reverseArray.js jstests/concurrency/fsm_all_simultaneous.js jstests/core/counta.js jstests/multiVersion/2_test_launching_cluster.js jstests/noPassthrough/shard_does_not_hang_on_bad_config_server.js jstests/readonly/aggregate.js jstests/readonly/catalog_ops.js jstests/readonly/geo.js jstests/readonly/lib/read_only_test.js jstests/repl/repl5.js jstests/replsets/replsetprio1.js jstests/sharding/auth_no_config_primary.js jstests/sharding/coll_epoch_test1.js jstests/sharding/merge_chunks_compound_shard_key.js jstests/sharding/migration_failure.js jstests/sharding/move_stale_mongos.js jstests/sharding/startup_with_all_configs_down.js src/mongo/shell/servers_misc.js src/mongo/shell/shardingtest.js
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/index_multi.js6
-rw-r--r--jstests/noPassthroughWithMongod/ttl1.js10
2 files changed, 8 insertions, 8 deletions
diff --git a/jstests/noPassthroughWithMongod/index_multi.js b/jstests/noPassthroughWithMongod/index_multi.js
index 8d728fac8d9..68004f27678 100644
--- a/jstests/noPassthroughWithMongod/index_multi.js
+++ b/jstests/noPassthroughWithMongod/index_multi.js
@@ -51,7 +51,7 @@ for (var i = 90; i < 93; i++) {
setupDBStr + "printjson(db.index_multi.createIndex(" + tojson(spec) + "," +
"{ background: true }));" + "db.results.insert(Object.extend(" +
"db.runCommand({ getlasterror: 1 }), " + tojson(spec) + ") );",
- null, // port
+ null, // port
true)); // noconnect
specs.push(spec);
multikey.push(i % 10 == 0 || (i + 1) % 10 == 0 || (i + 2) % 10 == 0);
@@ -66,7 +66,7 @@ for (var i = 30; i < 90; i += 2) {
setupDBStr + "printjson(db.index_multi.createIndex(" + tojson(spec) + ", " +
"{ background: true }));" + "db.results.insert(Object.extend(" +
"db.runCommand({ getlasterror: 1 }), " + tojson(spec) + ") );",
- null, // port
+ null, // port
true)); // noconnect
specs.push(spec);
multikey.push(i % 10 == 0 || (i + 1) % 10 == 0);
@@ -80,7 +80,7 @@ for (var i = 0; i < 30; i++) {
setupDBStr + "printjson(db.index_multi.createIndex(" + tojson(spec) + ", " +
"{ background: true }));" + "db.results.insert(Object.extend(" +
"db.runCommand({ getlasterror: 1 }), " + tojson(spec) + ") );",
- null, // port
+ null, // port
true)); // noconnect
specs.push(spec);
multikey.push(i % 10 == 0);
diff --git a/jstests/noPassthroughWithMongod/ttl1.js b/jstests/noPassthroughWithMongod/ttl1.js
index 60df6537023..6ab11e06f94 100644
--- a/jstests/noPassthroughWithMongod/ttl1.js
+++ b/jstests/noPassthroughWithMongod/ttl1.js
@@ -29,11 +29,11 @@ for (i = 0; i < 24; i++) {
var past = new Date(now - (3600 * 1000 * i));
t.insert({x: past, y: past, z: past});
}
-t.insert({a: 1}); // no x value
-t.insert({x: null}); // non-date value
-t.insert({x: true}); // non-date value
-t.insert({x: "yo"}); // non-date value
-t.insert({x: 3}); // non-date value
+t.insert({a: 1}); // no x value
+t.insert({x: null}); // non-date value
+t.insert({x: true}); // non-date value
+t.insert({x: "yo"}); // non-date value
+t.insert({x: 3}); // non-date value
t.insert({x: /foo/}); // non-date value
assert.eq(30, t.count());