diff options
Diffstat (limited to 'jstests/concurrency/fsm_workloads/create_index_background_unique.js')
-rw-r--r-- | jstests/concurrency/fsm_workloads/create_index_background_unique.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/jstests/concurrency/fsm_workloads/create_index_background_unique.js b/jstests/concurrency/fsm_workloads/create_index_background_unique.js index 4b4c50fd18e..29edb076ee3 100644 --- a/jstests/concurrency/fsm_workloads/create_index_background_unique.js +++ b/jstests/concurrency/fsm_workloads/create_index_background_unique.js @@ -37,14 +37,16 @@ var $config = (function() { }); // Multi-statement Transactions can fail with SnapshotUnavailable if there are // pending catalog changes as of the transaction start (see SERVER-43018). - assertWorkedOrFailedHandleTxnErrors(res, - [ - ErrorCodes.IndexBuildAlreadyInProgress, - ErrorCodes.SnapshotUnavailable, - ErrorCodes.SnapshotTooOld, - ErrorCodes.NotMaster - ], - [ErrorCodes.NotMaster]); + assertWorkedOrFailedHandleTxnErrors( + res, + [ + ErrorCodes.IndexBuildAborted, + ErrorCodes.IndexBuildAlreadyInProgress, + ErrorCodes.SnapshotUnavailable, + ErrorCodes.SnapshotTooOld, + ErrorCodes.NotMaster + ], + [ErrorCodes.IndexBuildAborted, ErrorCodes.NotMaster]); } function dropIndex(db, collName) { |