diff options
author | Spencer T Brody <spencer@mongodb.com> | 2016-06-15 14:45:15 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2016-06-22 17:39:56 -0400 |
commit | ef34ca10813a2fa779b2693f6566e354b09b063b (patch) | |
tree | 756f6a5c663409071112e2b6363e5f62212e9599 /jstests/sharding/map_reduce_validation.js | |
parent | e90b12837bf13891da5153173dff8a4f36d347cd (diff) | |
download | mongo-ef34ca10813a2fa779b2693f6566e354b09b063b.tar.gz |
SERVER-24597 Fix check that prevents sending mapreduce output to config servers
Diffstat (limited to 'jstests/sharding/map_reduce_validation.js')
-rw-r--r-- | jstests/sharding/map_reduce_validation.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/jstests/sharding/map_reduce_validation.js b/jstests/sharding/map_reduce_validation.js index 7ccbf6130ee..89aec1820fa 100644 --- a/jstests/sharding/map_reduce_validation.js +++ b/jstests/sharding/map_reduce_validation.js @@ -13,7 +13,7 @@ assert.commandFailed(testDB.runCommand( {mapReduce: 'user', map: mapFunc, reduce: reduceFunc, out: {inline: 1, sharded: true}})); testDB.bar.insert({i: 1}); -assert.commandFailed(testDB.runCommand({ +assert.commandFailedWithCode(testDB.runCommand({ mapReduce: 'bar', map: function() { emit(this.i, this.i * 3); @@ -22,9 +22,10 @@ assert.commandFailed(testDB.runCommand({ return Array.sum(values); }, out: {replace: "foo", db: "admin"} -})); +}), + ErrorCodes.CommandNotSupported); -assert.commandFailed(testDB.runCommand({ +assert.commandFailedWithCode(testDB.runCommand({ mapReduce: 'bar', map: function() { emit(this.i, this.i * 3); @@ -33,7 +34,8 @@ assert.commandFailed(testDB.runCommand({ return Array.sum(values); }, out: {replace: "foo", db: "config"} -})); +}), + ErrorCodes.CommandNotSupported); assert.commandWorked(testDB.runCommand({ mapReduce: 'bar', |