diff options
Diffstat (limited to 'jstests/core/kill_cursors.js')
-rw-r--r-- | jstests/core/kill_cursors.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/kill_cursors.js b/jstests/core/kill_cursors.js index 09184005c11..8c240a71def 100644 --- a/jstests/core/kill_cursors.js +++ b/jstests/core/kill_cursors.js @@ -32,7 +32,7 @@ assert.commandFailedWithCode(cmdRes, ErrorCodes.BadValue); // killCursors command should fail if the cursors parameter is not an array. cmdRes = db.runCommand({killCursors: coll.getName(), cursors: {a: NumberLong(123), b: NumberLong(456)}}); -assert.commandFailedWithCode(cmdRes, [40422]); +assert.commandFailedWithCode(cmdRes, ErrorCodes.TypeMismatch); // killCursors command should report that zero cursors were killed if the cursors parameter is an // empty array. |