diff options
author | Spencer T Brody <spencer@mongodb.com> | 2016-05-03 11:28:57 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2016-05-03 18:57:26 -0400 |
commit | 595d7d795f443cf4e848d8044d4102363b4870d2 (patch) | |
tree | 85477547e7d6270b87ab68d5381bac1fcb94aa43 /jstests/aggregation/extras/utils.js | |
parent | 9fab79e546604a74d577bbc1672e78d4bf849e82 (diff) | |
download | mongo-595d7d795f443cf4e848d8044d4102363b4870d2.tar.gz |
SERVER-23213 Remove all users of ShardRegistry::kAllRetriableErrors
This reverts commit f294d1dcd4884857d693b0f8a33cf1a6be434409.
Diffstat (limited to 'jstests/aggregation/extras/utils.js')
-rw-r--r-- | jstests/aggregation/extras/utils.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/aggregation/extras/utils.js b/jstests/aggregation/extras/utils.js index d8203f56b94..33cfe9b2b2b 100644 --- a/jstests/aggregation/extras/utils.js +++ b/jstests/aggregation/extras/utils.js @@ -275,9 +275,8 @@ function assertErrorCode(coll, pipe, code, errmsg) { var error = assert.throws(function() { cursor.itcount(); }, [], "expected error: " + code); - if (!error.message.search(code)) { - assert(false, "expected error: " + code + " got: " + error); - } + + assert.eq(error.code, code); } else { assert.eq(cursorRes.code, code); } |