summaryrefslogtreecommitdiff
path: root/cli/tests/unit/signal_test.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-06-14 15:31:50 -0400
committerGitHub <noreply@github.com>2022-06-14 15:31:50 -0400
commit4cff05b275726c027ec75d524c1e704d62cc74e3 (patch)
tree03e5d6ad508f20259fe8be007eb8fd7051b178cd /cli/tests/unit/signal_test.ts
parentd4f609d8e7b8a9dd3a3a9d289936a4eb706c037f (diff)
refactor(runtime/signal): revert SIGINT and SIGBREAK `Deno.kill` Windows changes (#14865)
Diffstat (limited to 'cli/tests/unit/signal_test.ts')
-rw-r--r--cli/tests/unit/signal_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/unit/signal_test.ts b/cli/tests/unit/signal_test.ts
index 4bb92bb31..b8b473e6d 100644
--- a/cli/tests/unit/signal_test.ts
+++ b/cli/tests/unit/signal_test.ts
@@ -204,10 +204,10 @@ Deno.test(
function windowsThrowsOnNegativeProcessIdTest() {
assertThrows(
() => {
- Deno.kill(-1, "SIGINT");
+ Deno.kill(-1, "SIGKILL");
},
TypeError,
- "Invalid process id (pid) -1 for signal SIGINT.",
+ "Invalid pid",
);
},
);
@@ -225,7 +225,7 @@ Deno.test(
Deno.kill(0, signal);
},
TypeError,
- `Cannot use ${signal} on PID 0`,
+ `Invalid pid`,
);
signal = "SIGTERM";
@@ -234,7 +234,7 @@ Deno.test(
Deno.kill(0, signal);
},
TypeError,
- `Cannot use ${signal} on PID 0`,
+ `Invalid pid`,
);
},
);