diff options
author | Wenbin Zhu <wenbin.zhu@mongodb.com> | 2021-05-12 19:25:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-12 20:25:00 +0000 |
commit | 1cb18cbb349e71cbd869c48c1e288527b48d6d73 (patch) | |
tree | bc8359efb04b084fc85900648b41bbc737af9a93 /jstests/replsets/tenant_migration_donor_interrupt_on_stepdown_and_shutdown.js | |
parent | f536417348fb67079a4efeda9afe6d3baebc7860 (diff) | |
download | mongo-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.js | 2 |
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); |