diff options
Diffstat (limited to 'jstests/replsets/tenant_migration_cloner_stats_with_failover.js')
| -rw-r--r-- | jstests/replsets/tenant_migration_cloner_stats_with_failover.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/replsets/tenant_migration_cloner_stats_with_failover.js b/jstests/replsets/tenant_migration_cloner_stats_with_failover.js index 43c4a63826e..e84f77b5d20 100644 --- a/jstests/replsets/tenant_migration_cloner_stats_with_failover.js +++ b/jstests/replsets/tenant_migration_cloner_stats_with_failover.js @@ -124,8 +124,7 @@ jsTestLog("Bytes copied after first batch of second database: " + bytesCopiedInc // original primary to the new primary. Then, step up the new primary. const fpAfterCreatingCollectionOfSecondDB = configureFailPoint(newRecipientPrimary, "tenantCollectionClonerHangAfterCreateCollection"); -tenantMigrationTest.getRecipientRst().awaitReplication(); -newRecipientPrimary.adminCommand({replSetStepUp: 1}); +tenantMigrationTest.getRecipientRst().stepUp(newRecipientPrimary); fpAfterBatchOfSecondDB.off(); jsTestLog("Wait until the new primary creates collection of second database."); |
