summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/indexbg_killop_primary_after_init.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/indexbg_killop_primary_after_init.js')
-rw-r--r--jstests/noPassthrough/indexbg_killop_primary_after_init.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthrough/indexbg_killop_primary_after_init.js b/jstests/noPassthrough/indexbg_killop_primary_after_init.js
index 897b21f888a..5ac9cde7ceb 100644
--- a/jstests/noPassthrough/indexbg_killop_primary_after_init.js
+++ b/jstests/noPassthrough/indexbg_killop_primary_after_init.js
@@ -61,7 +61,8 @@ IndexBuildTest.waitForIndexBuildToStop(testDB);
const exitCode = createIdx({checkExitSuccess: false});
assert.neq(0, exitCode, 'expected shell to exit abnormally due to index build being terminated');
-checkLog.contains(primary, 'IndexBuildAborted: Index build aborted: ');
+checkLog.contains(
+ primary, /IndexBuildAborted: Index build aborted: |Index build aborted:.*IndexBuildAborted/);
// Check that no new index has been created. This verifies that the index build was aborted
// rather than successfully completed.