Skip to content

Commit 1e6a7bf

Browse files
committed
fix(e2e): refresh credentials before CDK test phase to prevent ExpiredToken
1 parent d08a871 commit 1e6a7bf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

shared-scripts.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ function _runE2ETestsLinux {
364364

365365
function _runCDKTestsLinux {
366366
echo "RUN CDK Tests Linux"
367+
# Refresh parent account credentials before running tests to prevent expiry.
368+
# Credentials are initially loaded during setup (_setupCDKTestsLinux), but if
369+
# setup + test execution exceeds the 1-hour STS session limit, they expire.
370+
_loadTestAccountCredentials
367371
retry runCDKTest
368372
}
369373

0 commit comments

Comments
 (0)