diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2022-09-28 21:46:50 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 21:46:50 +0900 |
commit | fa9e7aab6d49f241a4eb30cc0e261f8ceb64af2f (patch) | |
tree | 04f3babcb09101e9264f021ecff53f7db266a80c /cli/tests/unit/network_interfaces_test.ts | |
parent | b312279e58e51520a38e51cca317a09cdadd7cb4 (diff) |
feat: add --allow-sys permission flag (#16028)
Diffstat (limited to 'cli/tests/unit/network_interfaces_test.ts')
-rw-r--r-- | cli/tests/unit/network_interfaces_test.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/tests/unit/network_interfaces_test.ts b/cli/tests/unit/network_interfaces_test.ts index 120f58763..a0e6e691a 100644 --- a/cli/tests/unit/network_interfaces_test.ts +++ b/cli/tests/unit/network_interfaces_test.ts @@ -1,7 +1,10 @@ import { assert } from "./test_util.ts"; Deno.test( - { name: "Deno.networkInterfaces", permissions: { env: true } }, + { + name: "Deno.networkInterfaces", + permissions: { sys: ["networkInterfaces"] }, + }, () => { const networkInterfaces = Deno.networkInterfaces(); assert(Array.isArray(networkInterfaces)); |