diff options
Diffstat (limited to 'jstests/replsets/tenant_migration_read_your_own_writes.js')
-rw-r--r-- | jstests/replsets/tenant_migration_read_your_own_writes.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/replsets/tenant_migration_read_your_own_writes.js b/jstests/replsets/tenant_migration_read_your_own_writes.js index 6eeac579037..52adb15df6e 100644 --- a/jstests/replsets/tenant_migration_read_your_own_writes.js +++ b/jstests/replsets/tenant_migration_read_your_own_writes.js @@ -46,8 +46,7 @@ const migrationOpts = { migrationIdString: extractUUIDFromObject(migrationId), tenantId: kTenantId, }; -const migrationRes = assert.commandWorked(tenantMigrationTest.runMigration(migrationOpts)); -assert.eq(migrationRes.state, TenantMigrationTest.State.kCommitted); +TenantMigrationTest.assertCommitted(tenantMigrationTest.runMigration(migrationOpts)); // Test that getMore works after the migration has committed. jsTestLog(`Testing getMore on cursor id ${cursor.id} on the donor after the migration`); |