summaryrefslogtreecommitdiff
path: root/jstests/replsets/tenant_migration_concurrent_migrations_recipient.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_concurrent_migrations_recipient.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_concurrent_migrations_recipient.js')
-rw-r--r--jstests/replsets/tenant_migration_concurrent_migrations_recipient.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/replsets/tenant_migration_concurrent_migrations_recipient.js b/jstests/replsets/tenant_migration_concurrent_migrations_recipient.js
index 93cd9ef89ce..d7b1ec85477 100644
--- a/jstests/replsets/tenant_migration_concurrent_migrations_recipient.js
+++ b/jstests/replsets/tenant_migration_concurrent_migrations_recipient.js
@@ -59,9 +59,8 @@ hangDuringCollectionClone.off();
migrationOptsArray.forEach((migrationOpts) => {
jsTestLog("Waiting for migration for tenant: " + migrationOpts.tenantId + " to complete");
- const stateRes =
- assert.commandWorked(tenantMigrationTest.waitForMigrationToComplete(migrationOpts));
- assert.eq(stateRes.state, TenantMigrationTest.DonorState.kCommitted);
+ TenantMigrationTest.assertCommitted(
+ tenantMigrationTest.waitForMigrationToComplete(migrationOpts));
});
tenantMigrationTest.stop();