diff options
author | Luca Casonato <hello@lcas.dev> | 2024-09-03 11:24:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 11:24:25 +0200 |
commit | 5cf97f539bb0c3d2bda918f53cd4a976c03b37e3 (patch) | |
tree | 82f05b270b3df52609e3d0d6c86a768d1399e257 /tests/testdata/test | |
parent | b5695d02df75719bca0df1aae0622b22761b1533 (diff) |
BREAKING(permissions): remove --allow-hrtime (#25367)
Remove `--allow-hrtime` and `--deny-hrtime`. We are doing this because
it is already possible to get access to high resolution timers through
workers and SharedArrayBuffer.
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'tests/testdata/test')
-rw-r--r-- | tests/testdata/test/allow_all.out | 6 | ||||
-rw-r--r-- | tests/testdata/test/allow_all.ts | 1 | ||||
-rw-r--r-- | tests/testdata/test/allow_none.out | 10 | ||||
-rw-r--r-- | tests/testdata/test/allow_none.ts | 1 | ||||
-rw-r--r-- | tests/testdata/test/ignore_permissions.ts | 1 |
5 files changed, 4 insertions, 15 deletions
diff --git a/tests/testdata/test/allow_all.out b/tests/testdata/test/allow_all.out index 8b783b823..b3bf5275f 100644 --- a/tests/testdata/test/allow_all.out +++ b/tests/testdata/test/allow_all.out @@ -1,5 +1,5 @@ [WILDCARD] -running 14 tests from [WILDCARD] +running 12 tests from [WILDCARD] read false ... ok [WILDCARD] read true ... ok [WILDCARD] write false ... ok [WILDCARD] @@ -12,7 +12,5 @@ run false ... ok [WILDCARD] run true ... ok [WILDCARD] ffi false ... ok [WILDCARD] ffi true ... ok [WILDCARD] -hrtime false ... ok [WILDCARD] -hrtime true ... ok [WILDCARD] -ok | 14 passed | 0 failed [WILDCARD] +ok | 12 passed | 0 failed [WILDCARD] diff --git a/tests/testdata/test/allow_all.ts b/tests/testdata/test/allow_all.ts index 01341d9e5..7faa58c61 100644 --- a/tests/testdata/test/allow_all.ts +++ b/tests/testdata/test/allow_all.ts @@ -7,7 +7,6 @@ const permissions: Deno.PermissionName[] = [ "env", "run", "ffi", - "hrtime", ]; for (const name of permissions) { diff --git a/tests/testdata/test/allow_none.out b/tests/testdata/test/allow_none.out index aaa467344..aaea9aea3 100644 --- a/tests/testdata/test/allow_none.out +++ b/tests/testdata/test/allow_none.out @@ -1,12 +1,11 @@ [WILDCARD] -running 7 tests from [WILDCARD] +running 6 tests from [WILDCARD] read ... FAILED [WILDCARD] write ... FAILED [WILDCARD] net ... FAILED [WILDCARD] env ... FAILED [WILDCARD] run ... FAILED [WILDCARD] ffi ... FAILED [WILDCARD] -hrtime ... FAILED [WILDCARD] ERRORS @@ -34,10 +33,6 @@ ffi => ./test/allow_none.ts:[WILDCARD] error: PermissionDenied: Can't escalate parent thread permissions [WILDCARD] -hrtime => ./test/allow_none.ts:[WILDCARD] -error: PermissionDenied: Can't escalate parent thread permissions -[WILDCARD] - FAILURES read => ./test/allow_none.ts:[WILDCARD] @@ -46,6 +41,5 @@ net => ./test/allow_none.ts:[WILDCARD] env => ./test/allow_none.ts:[WILDCARD] run => ./test/allow_none.ts:[WILDCARD] ffi => ./test/allow_none.ts:[WILDCARD] -hrtime => ./test/allow_none.ts:[WILDCARD] -FAILED | 0 passed | 7 failed [WILDCARD] +FAILED | 0 passed | 6 failed [WILDCARD] diff --git a/tests/testdata/test/allow_none.ts b/tests/testdata/test/allow_none.ts index 17a6f4014..e59a30c4d 100644 --- a/tests/testdata/test/allow_none.ts +++ b/tests/testdata/test/allow_none.ts @@ -7,7 +7,6 @@ const permissions: Deno.PermissionName[] = [ "env", "run", "ffi", - "hrtime", ]; for (const name of permissions) { diff --git a/tests/testdata/test/ignore_permissions.ts b/tests/testdata/test/ignore_permissions.ts index ff3084441..e9ade6dfe 100644 --- a/tests/testdata/test/ignore_permissions.ts +++ b/tests/testdata/test/ignore_permissions.ts @@ -7,7 +7,6 @@ Deno.test({ env: true, run: true, ffi: true, - hrtime: true, }, ignore: true, fn() { |