summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatherine Wu <katherine.wu@mongodb.com>2020-07-10 14:15:01 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-05 17:46:10 +0000
commitfd109f08f97117237dae3a9428c3d2d66f14e221 (patch)
treee8ef6f5ec3b609e2eb73f80ae42d503c24725223
parente25d43ca2b5e99e6484cb0e13ca5f9e2d014ac30 (diff)
downloadmongo-fd109f08f97117237dae3a9428c3d2d66f14e221.tar.gz
SERVER-49438 Allow memory.js tests to accept $where timeout interruption
-rw-r--r--jstests/serial_run/memory.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/serial_run/memory.js b/jstests/serial_run/memory.js
index 05be9901151..58b9a0566e0 100644
--- a/jstests/serial_run/memory.js
+++ b/jstests/serial_run/memory.js
@@ -38,7 +38,8 @@ function assertMemoryError(func) {
try {
func();
} catch (e) {
- if (e.message.includes("Out of memory")) {
+ if (e.message.includes("Out of memory") ||
+ e.message.includes("JavaScript execution interrupted")) {
return;
}
throw e;