summaryrefslogtreecommitdiff
path: root/jstests/replsets/tenant_migration_donor_interrupt_on_stepdown_and_shutdown.js
diff options
context:
space:
mode:
authorWenbin Zhu <wenbin.zhu@mongodb.com>2021-05-12 19:25:22 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-12 20:25:00 +0000
commit1cb18cbb349e71cbd869c48c1e288527b48d6d73 (patch)
treebc8359efb04b084fc85900648b41bbc737af9a93 /jstests/replsets/tenant_migration_donor_interrupt_on_stepdown_and_shutdown.js
parentf536417348fb67079a4efeda9afe6d3baebc7860 (diff)
downloadmongo-1cb18cbb349e71cbd869c48c1e288527b48d6d73.tar.gz
SERVER-55202 Add assertion if migration committed or aborted in TenantMigrationTest fixture.
Diffstat (limited to 'jstests/replsets/tenant_migration_donor_interrupt_on_stepdown_and_shutdown.js')
-rw-r--r--jstests/replsets/tenant_migration_donor_interrupt_on_stepdown_and_shutdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/tenant_migration_donor_interrupt_on_stepdown_and_shutdown.js b/jstests/replsets/tenant_migration_donor_interrupt_on_stepdown_and_shutdown.js
index 786b3c5622e..52fd23aa272 100644
--- a/jstests/replsets/tenant_migration_donor_interrupt_on_stepdown_and_shutdown.js
+++ b/jstests/replsets/tenant_migration_donor_interrupt_on_stepdown_and_shutdown.js
@@ -86,7 +86,7 @@ function testDonorForgetMigrationInterrupt(interruptFunc, verifyCmdResponseFunc)
const donorRstArgs = TenantMigrationUtil.createRstArgs(donorRst);
- assert.commandWorked(tenantMigrationTest.runMigration(
+ TenantMigrationTest.assertCommitted(tenantMigrationTest.runMigration(
migrationOpts, false /* retryOnRetryableErrors */, false /* automaticForgetMigration */));
const forgetMigrationThread = new Thread(
TenantMigrationUtil.forgetMigrationAsync, migrationOpts.migrationIdString, donorRstArgs);