summaryrefslogtreecommitdiff
path: root/jstests/replsets/tenant_migration_resume_oplog_application.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/tenant_migration_resume_oplog_application.js')
-rw-r--r--jstests/replsets/tenant_migration_resume_oplog_application.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/tenant_migration_resume_oplog_application.js b/jstests/replsets/tenant_migration_resume_oplog_application.js
index 530c9314574..532908d960b 100644
--- a/jstests/replsets/tenant_migration_resume_oplog_application.js
+++ b/jstests/replsets/tenant_migration_resume_oplog_application.js
@@ -94,7 +94,7 @@ if (appliedNoOps.count() === 2) {
// Step up a new node in the recipient set and trigger a failover. The new primary should resume
// fetching starting from the unapplied documents.
const newRecipientPrimary = recipientRst.getSecondaries()[0];
-assert.commandWorked(newRecipientPrimary.adminCommand({replSetStepUp: 1}));
+recipientRst.stepUp(newRecipientPrimary);
waitAfterDatabaseClone.off();
waitInOplogApplier.off();
recipientRst.getPrimary();