summaryrefslogtreecommitdiff
path: root/tests/specs/bench
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-09-10 20:12:24 +0200
committerGitHub <noreply@github.com>2024-09-10 11:12:24 -0700
commit7bfcb4dd10d31f5f9566c90a28449c0951f3a48e (patch)
treefca0dec6e98118418f1712c6e8451a04c7e89988 /tests/specs/bench
parentbe5419d479fcae16c8a07dec00ce11b532b7996a (diff)
feat(cli): use NotCapable error for permission errors (#25431)
Closes #7394 --------- Co-authored-by: snek <snek@deno.com>
Diffstat (limited to 'tests/specs/bench')
-rw-r--r--tests/specs/bench/allow_none/allow_none.out12
-rw-r--r--tests/specs/bench/no_prompt_by_default/no_prompt_by_default.out2
-rw-r--r--tests/specs/bench/no_prompt_with_denied_perms/no_prompt_with_denied_perms.out2
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/specs/bench/allow_none/allow_none.out b/tests/specs/bench/allow_none/allow_none.out
index d92fb1469..51bb70d72 100644
--- a/tests/specs/bench/allow_none/allow_none.out
+++ b/tests/specs/bench/allow_none/allow_none.out
@@ -6,16 +6,16 @@ Runtime | Deno [WILDLINE] ([WILDLINE])
benchmark time/iter (avg) iter/s (min … max) p75 p99 p995
----------- ----------------------------- --------------------- --------------------------
-read error: PermissionDenied: Can't escalate parent thread permissions
+read error: NotCapable: Can't escalate parent thread permissions
[WILDCARD]
-write error: PermissionDenied: Can't escalate parent thread permissions
+write error: NotCapable: Can't escalate parent thread permissions
[WILDCARD]
-net error: PermissionDenied: Can't escalate parent thread permissions
+net error: NotCapable: Can't escalate parent thread permissions
[WILDCARD]
-env error: PermissionDenied: Can't escalate parent thread permissions
+env error: NotCapable: Can't escalate parent thread permissions
[WILDCARD]
-run error: PermissionDenied: Can't escalate parent thread permissions
+run error: NotCapable: Can't escalate parent thread permissions
[WILDCARD]
-ffi error: PermissionDenied: Can't escalate parent thread permissions
+ffi error: NotCapable: Can't escalate parent thread permissions
[WILDCARD]
error: Bench failed
diff --git a/tests/specs/bench/no_prompt_by_default/no_prompt_by_default.out b/tests/specs/bench/no_prompt_by_default/no_prompt_by_default.out
index b39b4e1ba..e7bbd206d 100644
--- a/tests/specs/bench/no_prompt_by_default/no_prompt_by_default.out
+++ b/tests/specs/bench/no_prompt_by_default/no_prompt_by_default.out
@@ -5,6 +5,6 @@ Runtime | Deno [WILDCARD] ([WILDCARD])
benchmark time/iter (avg) iter/s (min … max) p75 p99 p995
----------- ----------------------------- --------------------- --------------------------
-no prompt error: PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag
+no prompt error: NotCapable: Requires read access to "./some_file.txt", run again with the --allow-read flag
[WILDCARD]
error: Bench failed
diff --git a/tests/specs/bench/no_prompt_with_denied_perms/no_prompt_with_denied_perms.out b/tests/specs/bench/no_prompt_with_denied_perms/no_prompt_with_denied_perms.out
index 182fcc4f1..656832863 100644
--- a/tests/specs/bench/no_prompt_with_denied_perms/no_prompt_with_denied_perms.out
+++ b/tests/specs/bench/no_prompt_with_denied_perms/no_prompt_with_denied_perms.out
@@ -5,6 +5,6 @@ Runtime | Deno [WILDCARD] ([WILDCARD])
benchmark time/iter (avg) iter/s (min … max) p75 p99 p995
----------- ----------------------------- --------------------- --------------------------
-no prompt error: PermissionDenied: Requires read access to "./some_file.txt", run again with the --allow-read flag
+no prompt error: NotCapable: Requires read access to "./some_file.txt", run again with the --allow-read flag
[WILDCARD]
error: Bench failed