From 822047b845d083721eb22663c98692d341bde648 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 7 Oct 2021 16:31:02 +0200 Subject: fix(runtime): don't equate SIGINT to SIGKILL on Windows (#12356) --- cli/tests/unit/process_test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/unit/process_test.ts b/cli/tests/unit/process_test.ts index 12946656d..8ac843973 100644 --- a/cli/tests/unit/process_test.ts +++ b/cli/tests/unit/process_test.ts @@ -476,7 +476,7 @@ unitTest( { ignore: Deno.build.os !== "windows", permissions: { run: true } }, function negativePidInvalidWindows() { assertThrows(() => { - Deno.kill(-1, "SIGINT"); + Deno.kill(-1, "SIGTERM"); }, TypeError); }, ); @@ -498,7 +498,7 @@ unitTest( }); try { - Deno.kill(p.pid, "SIGINT"); + Deno.kill(p.pid, "SIGKILL"); const status = await p.status(); assertEquals(status.success, false); @@ -506,8 +506,8 @@ unitTest( assertEquals(status.code, 1); assertEquals(status.signal, undefined); } else { - assertEquals(status.code, 130); - assertEquals(status.signal, 2); + assertEquals(status.code, 137); + assertEquals(status.signal, 9); } } finally { p.close(); -- cgit v1.2.3