summaryrefslogtreecommitdiff
path: root/tests/testdata/run/tls_starttls.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-08-29 00:56:15 +0100
committerGitHub <noreply@github.com>2024-08-29 01:56:15 +0200
commit57541b48ba0402a8ff4a1e30c7e326fe9edab241 (patch)
tree1f3ec518b5e4fdcbd4366be8057c5c31276bac92 /tests/testdata/run/tls_starttls.js
parent3afa3db4d394b0e63e63ad4e09645f74eea39c4a (diff)
test: replace usage of `window` with `globalThis` (#25284)
Fixes several tests blocking https://github.com/denoland/deno/pull/25213 by replacing `window` global that is gone in Deno 2 with `globalThis`. Also adjusted a few tests using deprecated `rid` field.
Diffstat (limited to 'tests/testdata/run/tls_starttls.js')
-rw-r--r--tests/testdata/run/tls_starttls.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/testdata/run/tls_starttls.js b/tests/testdata/run/tls_starttls.js
index 3d9439811..8e7ac03ee 100644
--- a/tests/testdata/run/tls_starttls.js
+++ b/tests/testdata/run/tls_starttls.js
@@ -36,7 +36,6 @@ listener.accept().then(
let conn = await Deno.connect({ hostname, port });
conn = await Deno.startTls(conn, { hostname });
-assert(conn.rid > 0);
const w = new BufWriter(conn);
const r = new BufReader(conn);
const body = `GET / HTTP/1.1\r\nHost: ${hostname}:${port}\r\n\r\n`;