Skip to content

Commit 7043f22

Browse files
committed
Reduce auto-exit delay from 5s to 1s to prevent workflow timeouts
- 5s delay per test suite was causing 30min timeout in GitHub Actions - 1s is sufficient for test runners to print summary statistics - Fixes timeout issue while still allowing test summaries to print
1 parent 6bd2953 commit 7043f22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/helper/Playwright.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,11 +984,11 @@ class Playwright extends Helper {
984984
}
985985

986986
// Schedule a delayed exit to prevent process hanging due to Playwright event loops
987-
// Wait 5 seconds to allow test runner to print summary statistics before exiting
987+
// Wait 1 second to allow test runner to print summary statistics before exiting
988988
if (!process.env.CODECEPT_DISABLE_AUTO_EXIT) {
989989
setTimeout(() => {
990990
process.exit(process.exitCode || 0)
991-
}, 5000).unref()
991+
}, 1000).unref()
992992
}
993993
}
994994

0 commit comments

Comments
 (0)