summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorWaley Chen <waleycz@gmail.com>2016-08-08 14:09:18 -0400
committerWaley Chen <waleycz@gmail.com>2016-08-08 14:09:18 -0400
commit66031378e0dcbb7219ad18bb5494fcddbdf325b8 (patch)
treee6565d895d80529604c92e951099715377250763 /jstests/noPassthroughWithMongod
parent8d34a5db1ef52d3759d7bc3438d74e2ab1041310 (diff)
downloadmongo-66031378e0dcbb7219ad18bb5494fcddbdf325b8.tar.gz
SERVER-25300 Incorrect syntax in for loop in collection.js
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/create_indexes_shell_helper.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js b/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js
index bca0cd05f54..ef54d5840b5 100644
--- a/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js
+++ b/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js
@@ -44,26 +44,22 @@
t.createIndexes([{x: 1}]);
assert.eq(commandsRan.length, 1);
assert(commandsRan[0].cmd.hasOwnProperty("createIndexes"));
- assert.eq(commandsRan[0].cmd["indexes"][0],
- {ns: "test.create_indexes_shell_helper", key: {x: 1}, name: "x_1"});
+ assert.eq(commandsRan[0].cmd["indexes"][0], {key: {x: 1}, name: "x_1"});
commandsRan = [];
t.createIndexes([{y: 1}, {z: -1}]);
assert.eq(commandsRan.length, 1);
assert(commandsRan[0].cmd.hasOwnProperty("createIndexes"));
- assert.eq(commandsRan[0].cmd["indexes"][0],
- {ns: "test.create_indexes_shell_helper", key: {y: 1}, name: "y_1"});
- assert.eq(commandsRan[0].cmd["indexes"][1],
- {ns: "test.create_indexes_shell_helper", key: {z: -1}, name: "z_-1"});
+ assert.eq(commandsRan[0].cmd["indexes"][0], {key: {y: 1}, name: "y_1"});
+ assert.eq(commandsRan[0].cmd["indexes"][1], {key: {z: -1}, name: "z_-1"});
commandsRan = [];
t.createIndex({a: 1});
assert.eq(commandsRan.length, 1);
assert(commandsRan[0].cmd.hasOwnProperty("createIndexes"));
- assert.eq(commandsRan[0].cmd["indexes"][0],
- {ns: "test.create_indexes_shell_helper", key: {a: 1}, name: "a_1"});
+ assert.eq(commandsRan[0].cmd["indexes"][0], {key: {a: 1}, name: "a_1"});
db.getMongo().forceWriteMode("compatibility");