diff options
-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(); |