diff options
Diffstat (limited to 'jstests/sharding/count1.js')
-rw-r--r-- | jstests/sharding/count1.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/sharding/count1.js b/jstests/sharding/count1.js index ce9ce017692..b820a436e8e 100644 --- a/jstests/sharding/count1.js +++ b/jstests/sharding/count1.js @@ -146,11 +146,12 @@ assert.commandFailedWithCode(db.runCommand({count: 'foo', query: {$c: {$abc: 3}} ErrorCodes.BadValue); // ii. Negative skip values should return error. -assert.commandFailedWithCode(db.runCommand({count: 'foo', skip: -2}), ErrorCodes.FailedToParse); +assert.commandFailedWithCode(db.runCommand({count: 'foo', skip: -2}), + [ErrorCodes.FailedToParse, 51024]); // iii. Negative skip values with positive limit should return error. assert.commandFailedWithCode(db.runCommand({count: 'foo', skip: -2, limit: 1}), - ErrorCodes.FailedToParse); + [ErrorCodes.FailedToParse, 51024]); // iv. Unknown options should return error. assert.commandFailedWithCode(db.runCommand({count: 'foo', random: true}), 40415); |