summaryrefslogtreecommitdiff
path: root/tests/unit_node
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-10-16 19:58:11 -0700
committerGitHub <noreply@github.com>2024-10-16 19:58:11 -0700
commit167f674c7cbb9632000c1feb0b747ba098b01c12 (patch)
tree610529e9e2a08ab6412d821852f3015549b28f38 /tests/unit_node
parent458d6278d2835896018086da773fd72b7af8ed66 (diff)
fix: don't warn on ignored signals on windows (#26332)
Closes #26183. The warnings are super noisy and not actionable for the user
Diffstat (limited to 'tests/unit_node')
-rw-r--r--tests/unit_node/process_test.ts28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/unit_node/process_test.ts b/tests/unit_node/process_test.ts
index 9506fb609..f9138c8f0 100644
--- a/tests/unit_node/process_test.ts
+++ b/tests/unit_node/process_test.ts
@@ -25,7 +25,6 @@ import {
assertThrows,
fail,
} from "@std/assert";
-import { assertSpyCall, assertSpyCalls, spy } from "@std/testing/mock";
import { stripAnsiCode } from "@std/fmt/colors";
import * as path from "@std/path";
import { delay } from "@std/async/delay";
@@ -239,33 +238,6 @@ Deno.test({
},
});
-Deno.test({
- name: "process.on - ignored signals on windows",
- ignore: Deno.build.os !== "windows",
- fn() {
- const ignoredSignals = ["SIGHUP", "SIGUSR1", "SIGUSR2"];
-
- for (const signal of ignoredSignals) {
- using consoleSpy = spy(console, "warn");
- const handler = () => {};
- process.on(signal, handler);
- process.off(signal, handler);
- assertSpyCall(consoleSpy, 0, {
- args: [`Ignoring signal "${signal}" on Windows`],
- });
- }
-
- {
- using consoleSpy = spy(console, "warn");
- const handler = () => {};
- process.on("SIGTERM", handler);
- process.off("SIGTERM", handler);
- // No warning is made for SIGTERM
- assertSpyCalls(consoleSpy, 0);
- }
- },
-});
-
Deno.test(
{ permissions: { run: true, read: true } },
async function processKill() {