Skip to content

Commit db26190

Browse files
author
hugh.hyj
committed
fix: exit code is null on win32
1 parent c2a37a3 commit db26190

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/start.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,11 @@ describe('test/start.test.js', () => {
577577
const exitEvent = awaitEvent(app.proc, 'exit');
578578
app.proc.kill('SIGTERM');
579579
const code = yield exitEvent;
580-
assert(code === 0);
580+
if (isWin) {
581+
assert(code === null);
582+
} else {
583+
assert(code === 0);
584+
}
581585
});
582586
});
583587
});

0 commit comments

Comments
 (0)