playwright/packages/playwright-test/src
Dmitry Gozman ed99ac7395
fix(sigint): make sure we do not add handler twice (#24413)
In the following scenario, we were adding SIGINT handler twice, but
removing it just once:
- Task runner starts testing, creates SigIntWatcher, installs SIGINT
handler.
- Press Ctrl+C, task runner interrupts, disarms SigIntWatcher, SIGINT
handler is not removed due to 1000ms cooldown.
- Task runner starts cleanup, creates SigIntWatcher, installs another
SIGINT handler.
- Cleanup finishes, SigIntWatcher disarms, could remove or not remove
SIGINT handler based on timing (same 1000ms cooldown). In any case, we
have one or two SIGINT handlers still on.
- HTML reporter hangs in onExit, while we still have SIGINT handler up,
so Ctrl+C does not exit.

Regressed in #24265.
2023-07-25 18:35:38 -07:00
..
common chore: replace process.exit with graceful closure (#24242) 2023-07-24 08:29:29 -07:00
isomorphic chore: introduce ReporterV2 interface (#23983) 2023-06-30 13:36:50 -07:00
loader chore: support esm loader on Node 20 (#23269) 2023-05-24 20:17:44 -07:00
matchers chore: show last poller error on test timeout (#24292) 2023-07-18 17:03:26 -07:00
plugins chore: replace process.exit with graceful closure (#24242) 2023-07-24 08:29:29 -07:00
reporters chore: replace process.exit with graceful closure (#24242) 2023-07-24 08:29:29 -07:00
runner fix(sigint): make sure we do not add handler twice (#24413) 2023-07-25 18:35:38 -07:00
third_party feat(test runner): support tsconfig.extends array (#22975) 2023-05-11 19:18:13 -07:00
transform chore: allow marking scripts as external for transform (#23449) 2023-06-01 20:28:49 -07:00
worker Revert "chore: refactor timeout manager to use scopes (1) (#24315)" (#24382) 2023-07-24 14:09:20 -07:00
cli.ts chore: replace process.exit with graceful closure (#24242) 2023-07-24 08:29:29 -07:00
DEPS.list chore: support esm loader on Node 20 (#23269) 2023-05-24 20:17:44 -07:00
index.ts Revert "chore: refactor timeout manager to use scopes (1) (#24315)" (#24382) 2023-07-24 14:09:20 -07:00
internalsForTest.ts chore: move transform to its own folder (for loader worker) (#23247) 2023-05-23 21:05:33 -07:00
store.ts chore: inside out the config & project internal (#22260) 2023-04-07 09:54:01 -07:00
util.ts Revert "fix: do not collide with other tests when test names have special chars (#23414)" (#24213) 2023-07-13 20:03:02 +02:00
utilsBundle.ts chore: make trace viewer work over http (#23531) 2023-06-05 16:30:30 -07:00