summaryrefslogtreecommitdiff
path: root/jstests/replsets/tenant_migration_recipient_retry_forget_migration.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/tenant_migration_recipient_retry_forget_migration.js')
-rw-r--r--jstests/replsets/tenant_migration_recipient_retry_forget_migration.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/tenant_migration_recipient_retry_forget_migration.js b/jstests/replsets/tenant_migration_recipient_retry_forget_migration.js
index 3023a2fb61f..da694d8dc3d 100644
--- a/jstests/replsets/tenant_migration_recipient_retry_forget_migration.js
+++ b/jstests/replsets/tenant_migration_recipient_retry_forget_migration.js
@@ -85,7 +85,7 @@ const newRecipientPrimary = tenantMigrationTest.getRecipientRst().getSecondary()
const newPrimaryFp = configureFailPoint(newRecipientPrimary, "hangBeforeTaskCompletion");
// Step up a new recipient primary before the state doc is truly marked as garbage collectable.
-tenantMigrationTest.getRecipientRst().stepUp(newRecipientPrimary);
+assert.commandWorked(newRecipientPrimary.adminCommand({replSetStepUp: 1}));
fp.off();
// The new primary should skip all tenant migration steps but wait for another