fix(test): stabilize watch-node shutdown tests

This commit is contained in:
Vincent Koc
2026-06-01 14:50:41 +02:00
parent 671909d6d3
commit 408fa6e951
2 changed files with 23 additions and 18 deletions

View File

@@ -352,6 +352,9 @@ export async function runWatchMain(params = {}) {
});
watchProcess.on("exit", (exitCode, exitSignal) => {
watchProcess = null;
if (settled) {
return;
}
if (settleIfShuttingDown()) {
return;
}
@@ -422,6 +425,9 @@ export async function runWatchMain(params = {}) {
});
watchProcess.on("exit", (exitCode, exitSignal) => {
watchProcess = null;
if (settled) {
return;
}
if (settleIfShuttingDown()) {
return;
}