test: prevent pass-through race cond with stream event parsing in tunnel tests

This commit is contained in:
diegosouzapw
2026-04-07 00:44:58 -03:00
parent 1882d263b9
commit 6a522b381c

View File

@@ -322,7 +322,9 @@ test("startCloudflaredTunnel records an error state when the child exits before
)
);
alive.delete(child.pid);
child.emit("exit", 1, null);
setTimeout(() => {
child.emit("exit", 1, null);
}, 5);
}, 25);
return child;
};