summaryrefslogtreecommitdiff
path: root/tests/testdata/workers
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-07-05 23:45:06 +0100
committerGitHub <noreply@github.com>2024-07-05 23:45:06 +0100
commit74ac29bae666cd910c6f66d47b20e3209afc1fe7 (patch)
treeee6a2b5677cbbdf6e7c0ddc8ff94940792e2089a /tests/testdata/workers
parent80df9aec1db449e6cc0f4513103aa442b8d43de3 (diff)
fix(permissions): handle ipv6 addresses correctly (#24397)
Also don't panic on invalid domain names and addresses. Extracted with cleanups up from #24080 Co-authored-by: Yazan AbdAl-Rahman <yazan.abdalrahman@exalt.ps>
Diffstat (limited to 'tests/testdata/workers')
-rw-r--r--tests/testdata/workers/permissions_blob_remote.ts.out2
-rw-r--r--tests/testdata/workers/permissions_data_remote.ts.out2
-rw-r--r--tests/testdata/workers/permissions_dynamic_remote.ts.out2
-rw-r--r--tests/testdata/workers/permissions_remote_remote.ts.out2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/testdata/workers/permissions_blob_remote.ts.out b/tests/testdata/workers/permissions_blob_remote.ts.out
index 618f552dc..6dc4f0f5f 100644
--- a/tests/testdata/workers/permissions_blob_remote.ts.out
+++ b/tests/testdata/workers/permissions_blob_remote.ts.out
@@ -1,4 +1,4 @@
-error: Uncaught (in worker "") Requires net access to "example.com", run again with the --allow-net flag
+error: Uncaught (in worker "") Requires net access to "example.com:443", run again with the --allow-net flag
at blob:null/[WILDCARD]:1:8
error: Uncaught (in promise) Error: Unhandled error in child worker.
at Worker.#pollControl[WILDCARD]
diff --git a/tests/testdata/workers/permissions_data_remote.ts.out b/tests/testdata/workers/permissions_data_remote.ts.out
index 3f7c8cb63..e7af110bb 100644
--- a/tests/testdata/workers/permissions_data_remote.ts.out
+++ b/tests/testdata/workers/permissions_data_remote.ts.out
@@ -1,4 +1,4 @@
-error: Uncaught (in worker "") Requires net access to "example.com", run again with the --allow-net flag
+error: Uncaught (in worker "") Requires net access to "example.com:443", run again with the --allow-net flag
at data:application/javascript;base64,aW1wb3J0ICJodHRwczovL2V4YW1wbGUuY29tL3NvbWUvZmlsZS50cyI7:1:8
error: Uncaught (in promise) Error: Unhandled error in child worker.
at Worker.#pollControl[WILDCARD]
diff --git a/tests/testdata/workers/permissions_dynamic_remote.ts.out b/tests/testdata/workers/permissions_dynamic_remote.ts.out
index 91f3cc6d5..4fb2c2234 100644
--- a/tests/testdata/workers/permissions_dynamic_remote.ts.out
+++ b/tests/testdata/workers/permissions_dynamic_remote.ts.out
@@ -1,4 +1,4 @@
-error: Uncaught (in worker "") (in promise) TypeError: Requires net access to "example.com", run again with the --allow-net flag
+error: Uncaught (in worker "") (in promise) TypeError: Requires net access to "example.com:443", run again with the --allow-net flag
await import("" + "https://example.com/some/file.ts");
^
at async http://localhost:4545/workers/dynamic_remote.ts:2:1
diff --git a/tests/testdata/workers/permissions_remote_remote.ts.out b/tests/testdata/workers/permissions_remote_remote.ts.out
index bb065740a..a095f1938 100644
--- a/tests/testdata/workers/permissions_remote_remote.ts.out
+++ b/tests/testdata/workers/permissions_remote_remote.ts.out
@@ -1,4 +1,4 @@
-error: Uncaught (in worker "") Requires net access to "example.com", run again with the --allow-net flag
+error: Uncaught (in worker "") Requires net access to "example.com:443", run again with the --allow-net flag
at http://localhost:4545/workers/static_remote.ts:2:8
error: Uncaught (in promise) Error: Unhandled error in child worker.
at Worker.#pollControl [WILDCARD]