diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tests/059_fs_relative_path_perm.ts.out | 2 | ||||
-rw-r--r-- | cli/tests/080_deno_emit_permissions.ts.out | 2 | ||||
-rw-r--r-- | cli/tests/error_015_dynamic_import_permissions.out | 2 | ||||
-rw-r--r-- | cli/tests/error_worker_permissions_local.ts.out | 2 | ||||
-rw-r--r-- | cli/tests/error_worker_permissions_remote.ts.out | 2 | ||||
-rw-r--r-- | cli/tests/integration_tests.rs | 6 | ||||
-rw-r--r-- | cli/tests/unit/dir_test.ts | 2 | ||||
-rw-r--r-- | cli/tests/unit/os_test.ts | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/cli/tests/059_fs_relative_path_perm.ts.out b/cli/tests/059_fs_relative_path_perm.ts.out index 48bc21274..b55412137 100644 --- a/cli/tests/059_fs_relative_path_perm.ts.out +++ b/cli/tests/059_fs_relative_path_perm.ts.out @@ -1,4 +1,4 @@ -[WILDCARD]error: Uncaught PermissionDenied: read access to "non-existent", run again with the --allow-read flag +[WILDCARD]error: Uncaught PermissionDenied: Requires read access to "non-existent", run again with the --allow-read flag Deno.readFileSync("non-existent"); ^ at [WILDCARD] diff --git a/cli/tests/080_deno_emit_permissions.ts.out b/cli/tests/080_deno_emit_permissions.ts.out index cc8d13af9..4eb4fd1c1 100644 --- a/cli/tests/080_deno_emit_permissions.ts.out +++ b/cli/tests/080_deno_emit_permissions.ts.out @@ -1,2 +1,2 @@ -[WILDCARD]error: Uncaught (in promise) PermissionDenied: read access to "[WILDCARD]001_hello.js", run again with the --allow-read flag +[WILDCARD]error: Uncaught (in promise) PermissionDenied: Requires read access to "[WILDCARD]001_hello.js", run again with the --allow-read flag [WILDCARD] diff --git a/cli/tests/error_015_dynamic_import_permissions.out b/cli/tests/error_015_dynamic_import_permissions.out index d613066a4..de6585dcd 100644 --- a/cli/tests/error_015_dynamic_import_permissions.out +++ b/cli/tests/error_015_dynamic_import_permissions.out @@ -1,4 +1,4 @@ -error: Uncaught (in promise) TypeError: network access to "localhost:4545", run again with the --allow-net flag +error: Uncaught (in promise) TypeError: Requires net access to "localhost:4545", run again with the --allow-net flag await import("http://localhost:4545/cli/tests/subdir/mod4.js"); ^ at async file:///[WILDCARD]/error_015_dynamic_import_permissions.js:2:3 diff --git a/cli/tests/error_worker_permissions_local.ts.out b/cli/tests/error_worker_permissions_local.ts.out index e53accbab..e6404e8e3 100644 --- a/cli/tests/error_worker_permissions_local.ts.out +++ b/cli/tests/error_worker_permissions_local.ts.out @@ -1,3 +1,3 @@ [WILDCARD] -error: Uncaught (in worker "") read access to "[WILDCARD]worker_types.ts", run again with the --allow-read flag +error: Uncaught (in worker "") Requires read access to "[WILDCARD]worker_types.ts", run again with the --allow-read flag [WILDCARD] diff --git a/cli/tests/error_worker_permissions_remote.ts.out b/cli/tests/error_worker_permissions_remote.ts.out index 5bbc58b34..74c7c3974 100644 --- a/cli/tests/error_worker_permissions_remote.ts.out +++ b/cli/tests/error_worker_permissions_remote.ts.out @@ -1,3 +1,3 @@ [WILDCARD] -error: Uncaught (in worker "") network access to "localhost:4545", run again with the --allow-net flag +error: Uncaught (in worker "") Requires net access to "localhost:4545", run again with the --allow-net flag [WILDCARD] diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 23d119d44..4be586351 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -5520,7 +5520,7 @@ console.log("finish"); assert_eq!(util::strip_ansi_codes(&stdout_str), "0.147205063401058\n"); let stderr_str = String::from_utf8(output.stderr).unwrap(); assert!(util::strip_ansi_codes(&stderr_str) - .contains("PermissionDenied: write access")); + .contains("PermissionDenied: Requires write access")); } #[test] @@ -5784,7 +5784,7 @@ console.log("finish"); let out = String::from_utf8_lossy(&output.stdout); assert!(!output.status.success()); assert!(err.starts_with("Check file")); - assert!(err.contains(r#"error: Uncaught (in promise) PermissionDenied: network access to "127.0.0.1:4553""#)); + assert!(err.contains(r#"error: Uncaught (in promise) PermissionDenied: Requires net access to "127.0.0.1:4553""#)); assert!(out.is_empty()); } @@ -5806,7 +5806,7 @@ console.log("finish"); let out = String::from_utf8_lossy(&output.stdout); assert!(!output.status.success()); assert!(err.starts_with("Check file")); - assert!(err.contains(r#"error: Uncaught (in promise) PermissionDenied: network access to "127.0.0.1:4553""#)); + assert!(err.contains(r#"error: Uncaught (in promise) PermissionDenied: Requires net access to "127.0.0.1:4553""#)); assert!(out.is_empty()); } diff --git a/cli/tests/unit/dir_test.ts b/cli/tests/unit/dir_test.ts index 75a41dd40..e64baf97b 100644 --- a/cli/tests/unit/dir_test.ts +++ b/cli/tests/unit/dir_test.ts @@ -44,7 +44,7 @@ unitTest({ perms: { read: false } }, function dirCwdPermError(): void { Deno.cwd(); }, Deno.errors.PermissionDenied, - "read access to <CWD>, run again with the --allow-read flag", + "Requires read access to <CWD>, run again with the --allow-read flag", ); }); diff --git a/cli/tests/unit/os_test.ts b/cli/tests/unit/os_test.ts index 5786ad32e..9b0f71352 100644 --- a/cli/tests/unit/os_test.ts +++ b/cli/tests/unit/os_test.ts @@ -158,7 +158,7 @@ unitTest({ perms: { read: false } }, function execPathPerm(): void { Deno.execPath(); }, Deno.errors.PermissionDenied, - "read access to <exec_path>, run again with the --allow-read flag", + "Requires read access to <exec_path>, run again with the --allow-read flag", ); }); |