mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
The fixtures that exit while a Worker is blocked created their file in an 'exit' listener, before the process actually starts exiting, e.g. while an uncaught error is still being formatted. If the deadline expired in between, the main thread handled the timeout and the test failed instead of retrying. The main thread cannot do that once it is exiting, so retry when it did, and drop the 'exit' listeners. Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com> PR-URL: https://github.com/nodejs/node/pull/67481 Refs: https://github.com/nodejs/reliability/issues/1724 Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>