Skip to content

Commit c809d16

Browse files
committed
cleanup on main process exit, not spawn'd process since it just error'd out
1 parent cc56c37 commit c809d16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/src/helpers/launchAppCrossPlatform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ export function startXvfb(): { display: string; stop: () => void } {
176176
}
177177
}
178178
}
179-
// Ensure Xvfb is stopped on process exit
179+
// Ensure Xvfb is stopped on main process exit
180180
;["SIGINT", "SIGTERM", "uncaughtException", "unhandledRejection"].forEach(sig => {
181-
proc.once(sig, () => {
181+
process.once(sig, () => {
182182
try {
183183
stop()
184184
} catch (e) {

0 commit comments

Comments
 (0)