summaryrefslogtreecommitdiff
path: root/jstests/aggregation/extras
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/aggregation/extras')
-rw-r--r--jstests/aggregation/extras/utils.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/jstests/aggregation/extras/utils.js b/jstests/aggregation/extras/utils.js
index febd852c253..6face031533 100644
--- a/jstests/aggregation/extras/utils.js
+++ b/jstests/aggregation/extras/utils.js
@@ -342,19 +342,6 @@ function assertErrCodeAndErrMsgContains(coll, pipe, code, expectedMessage) {
}
/**
- * Assert that an aggregation ran on admin DB fails with a specific code and the error message
- * contains the given string. Note that 'code' can be an array of possible codes.
- */
-function assertAdminDBErrCodeAndErrMsgContains(coll, pipe, code, expectedMessage) {
- const response = assert.commandFailedWithCode(
- coll.getDB().adminCommand({aggregate: 1, pipeline: pipe, cursor: {}}), code);
- assert.neq(
- -1,
- response.errmsg.indexOf(expectedMessage),
- "Error message did not contain '" + expectedMessage + "', found:\n" + tojson(response));
-}
-
-/**
* Assert that an aggregation fails with any code and the error message contains the given
* string.
*/