summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorKyle Suarez <ksuarz@gmail.com>2016-05-03 00:01:19 -0400
committerKyle Suarez <ksuarz@gmail.com>2016-05-03 00:01:19 -0400
commitf294d1dcd4884857d693b0f8a33cf1a6be434409 (patch)
tree8ba380d2b2b461f3b5459282e1ac7b51da56475b /jstests
parent8abd5682f551ad79dec3557f721eebd45b21be0f (diff)
downloadmongo-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.js5
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);
}