diff options
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/concurrency/fsm_workload_helpers/kill_session.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/concurrency/fsm_workload_helpers/kill_session.js b/jstests/concurrency/fsm_workload_helpers/kill_session.js index f440f25d8d5..004db48ecac 100644 --- a/jstests/concurrency/fsm_workload_helpers/kill_session.js +++ b/jstests/concurrency/fsm_workload_helpers/kill_session.js @@ -23,7 +23,10 @@ function killSession(db, collName) { ourSessionWasKilled = true; continue; } else { - assertAlways.commandFailedWithCode(res, ErrorCodes.DuplicateKey); + assertAlways.commandFailedWithCode( + res, + [ErrorCodes.DuplicateKey, ErrorCodes.WriteConcernFailed], + 'unexpected error code: ' + res.code + ': ' + res.message); } const sessionToKill = db.getSiblingDB("config").system.sessions.aggregate([ |