diff options
author | Kyle Suarez <ksuarz@gmail.com> | 2016-05-03 00:01:19 -0400 |
---|---|---|
committer | Kyle Suarez <ksuarz@gmail.com> | 2016-05-03 00:01:19 -0400 |
commit | f294d1dcd4884857d693b0f8a33cf1a6be434409 (patch) | |
tree | 8ba380d2b2b461f3b5459282e1ac7b51da56475b /jstests | |
parent | 8abd5682f551ad79dec3557f721eebd45b21be0f (diff) | |
download | mongo-f294d1dcd4884857d693b0f8a33cf1a6be434409.tar.gz |
Revert "SERVER-23213 Remove all users of ShardRegistry::kAllRetriableErrors"
This reverts commit 21cfba12a005431b08a8c69dcdb1f262622ea780.
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/aggregation/extras/utils.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/aggregation/extras/utils.js b/jstests/aggregation/extras/utils.js index 33cfe9b2b2b..d8203f56b94 100644 --- a/jstests/aggregation/extras/utils.js +++ b/jstests/aggregation/extras/utils.js @@ -275,8 +275,9 @@ function assertErrorCode(coll, pipe, code, errmsg) { var error = assert.throws(function() { cursor.itcount(); }, [], "expected error: " + code); - - assert.eq(error.code, code); + if (!error.message.search(code)) { + assert(false, "expected error: " + code + " got: " + error); + } } else { assert.eq(cursorRes.code, code); } |