diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2020-07-15 10:14:58 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-15 16:42:41 +0000 |
commit | a5637c8549a849fd143c7fd03bec491244d62abf (patch) | |
tree | d1c75df1f11813b982b98436ae8f75eb8dbb20d4 | |
parent | 1c4dde30942b37f1fc0cfbaea688e66746e2406c (diff) | |
download | mongo-a5637c8549a849fd143c7fd03bec491244d62abf.tar.gz |
SERVER-49514 'index_abort_before_commit_signal.js' should check for the 'IndexBuildAborted' error code
-rw-r--r-- | jstests/noPassthrough/index_abort_before_commit_signal.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/noPassthrough/index_abort_before_commit_signal.js b/jstests/noPassthrough/index_abort_before_commit_signal.js index 68a07d0b148..c0f4574f8fb 100644 --- a/jstests/noPassthrough/index_abort_before_commit_signal.js +++ b/jstests/noPassthrough/index_abort_before_commit_signal.js @@ -27,8 +27,10 @@ assert.commandWorked(coll.insert({_id: 1, a: 1})); // Enable fail point which makes index build hang before it reads the index build const failPoint = configureFailPoint(primary, 'hangBeforeGettingIndexBuildEntry'); -const createIndex = IndexBuildTest.startIndexBuild( - primary, coll.getFullName(), {a: 1}, {}, ErrorCodes.NoMatchingDocument); +const createIndex = IndexBuildTest.startIndexBuild(primary, coll.getFullName(), {a: 1}, {}, [ + ErrorCodes.IndexBuildAborted, + ErrorCodes.NoMatchingDocument +]); failPoint.wait(); |