test: refresh merchant token before PDA handoff

This commit is contained in:
2026-09-11 01:24:00 +08:00
parent 4f27e33daf
commit 543ebee5cc
2 changed files with 6 additions and 0 deletions
@@ -917,6 +917,10 @@ export async function run(context) {
context.createdResources.phase4OverseasPda.completedContainers.push(producer?.containerNo || null)
}
}
const refreshedMerchantToken = await loginMerchantForNegativeProbe(context)
if (nonBlank(refreshedMerchantToken)) {
context.context.phase4OverseasPdaOperations.merchantToken = refreshedMerchantToken
}
handoffReady = context.context.phase4OverseasPdaOperations.completedFixtures.length > 0
} finally {
delete context.pdaContainerSuffix