diff options
Diffstat (limited to 'jstests/sharding/compound_hashed_shard_key_sharding_cmds.js')
-rw-r--r-- | jstests/sharding/compound_hashed_shard_key_sharding_cmds.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/sharding/compound_hashed_shard_key_sharding_cmds.js b/jstests/sharding/compound_hashed_shard_key_sharding_cmds.js index 4be26f1c18d..09885c4b3d7 100644 --- a/jstests/sharding/compound_hashed_shard_key_sharding_cmds.js +++ b/jstests/sharding/compound_hashed_shard_key_sharding_cmds.js @@ -133,9 +133,11 @@ function testMoveChunk(shardKey) { // Error if either of the bounds is not a valid shard key. assert.commandFailedWithCode( - st.s0.adminCommand({moveChunk: ns, bounds: [NaN, aChunk.max], to: shard1}), 10065); + st.s0.adminCommand({moveChunk: ns, bounds: [NaN, aChunk.max], to: shard1}), + ErrorCodes.TypeMismatch); assert.commandFailedWithCode( - st.s0.adminCommand({moveChunk: ns, bounds: [aChunk.min, NaN], to: shard1}), 10065); + st.s0.adminCommand({moveChunk: ns, bounds: [aChunk.min, NaN], to: shard1}), + ErrorCodes.TypeMismatch); assert.commandWorked( st.s0.adminCommand({moveChunk: ns, bounds: [aChunk.min, aChunk.max], to: shard1})); |