diff options
Diffstat (limited to 'jstests/core/validate_cmd_ns.js')
-rw-r--r-- | jstests/core/validate_cmd_ns.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/jstests/core/validate_cmd_ns.js b/jstests/core/validate_cmd_ns.js index 4caf038a129..93f4a798a61 100644 --- a/jstests/core/validate_cmd_ns.js +++ b/jstests/core/validate_cmd_ns.js @@ -5,21 +5,20 @@ */ // Note: _exec gives you the raw response from the server. -var res = db.$cmd.find({ whatsmyuri: 1 })._exec().next(); +var res = db.$cmd.find({whatsmyuri: 1})._exec().next(); assert.commandFailed(res); assert(res.errmsg.indexOf('bad numberToReturn') > -1); -res = db.$cmd.find({ whatsmyuri: 1 }).limit(0)._exec().next(); +res = db.$cmd.find({whatsmyuri: 1}).limit(0)._exec().next(); assert.commandFailed(res); assert(res.errmsg.indexOf('bad numberToReturn') > -1); -res = db.$cmd.find({ whatsmyuri: 1 }).limit(-2)._exec().next(); +res = db.$cmd.find({whatsmyuri: 1}).limit(-2)._exec().next(); assert.commandFailed(res); assert(res.errmsg.indexOf('bad numberToReturn') > -1); -res = db.$cmd.find({ whatsmyuri: 1 }).limit(1).next(); +res = db.$cmd.find({whatsmyuri: 1}).limit(1).next(); assert.commandWorked(res); -res = db.$cmd.find({ whatsmyuri: 1 }).limit(-1).next(); +res = db.$cmd.find({whatsmyuri: 1}).limit(-1).next(); assert.commandWorked(res); - |