mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-04 02:04:05 +00:00
fix(test): stabilize watch-node shutdown tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user