summaryrefslogtreecommitdiff
path: root/cli/tests/unit/signal_test.ts
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-09-23 07:50:50 +0800
committerGitHub <noreply@github.com>2021-09-23 01:50:50 +0200
commit830586d242216e64fcd16e65cc83db9d54d63dc0 (patch)
treea84f0090faaa14879693016e9d9b13fcfbb92dcd /cli/tests/unit/signal_test.ts
parent87e78802b0ae65cc57d66eaa8e5265f74cf69092 (diff)
test(cli): align unit test permissions with runtime test permissions (#12189)
Diffstat (limited to 'cli/tests/unit/signal_test.ts')
-rw-r--r--cli/tests/unit/signal_test.ts16
1 files changed, 11 insertions, 5 deletions
diff --git a/cli/tests/unit/signal_test.ts b/cli/tests/unit/signal_test.ts
index 9afa737ee..1f099a0c4 100644
--- a/cli/tests/unit/signal_test.ts
+++ b/cli/tests/unit/signal_test.ts
@@ -99,7 +99,10 @@ unitTest(
);
unitTest(
- { ignore: Deno.build.os === "windows", perms: { run: true, net: true } },
+ {
+ ignore: Deno.build.os === "windows",
+ permissions: { run: true, net: true },
+ },
async function signalStreamTest() {
const resolvable = deferred();
// This prevents the program from exiting.
@@ -131,7 +134,10 @@ unitTest(
// This tests that pending op_signal_poll doesn't block the runtime from exiting the process.
unitTest(
- { ignore: Deno.build.os === "windows", perms: { run: true, read: true } },
+ {
+ ignore: Deno.build.os === "windows",
+ permissions: { run: true, read: true },
+ },
async function signalStreamExitTest() {
const p = Deno.run({
cmd: [
@@ -148,7 +154,7 @@ unitTest(
);
unitTest(
- { ignore: Deno.build.os === "windows", perms: { run: true } },
+ { ignore: Deno.build.os === "windows", permissions: { run: true } },
async function signalPromiseTest() {
const resolvable = deferred();
// This prevents the program from exiting.
@@ -169,7 +175,7 @@ unitTest(
// https://github.com/denoland/deno/issues/9806
unitTest(
- { ignore: Deno.build.os === "windows", perms: { run: true } },
+ { ignore: Deno.build.os === "windows", permissions: { run: true } },
async function signalPromiseTest2() {
const resolvable = deferred();
// This prevents the program from exiting.
@@ -197,7 +203,7 @@ unitTest(
);
unitTest(
- { ignore: Deno.build.os === "windows", perms: { run: true } },
+ { ignore: Deno.build.os === "windows", permissions: { run: true } },
function signalShorthandsTest() {
let s: Deno.SignalStream;
s = Deno.signal("SIGALRM");