aboutsummaryrefslogtreecommitdiff
path: root/test/js/node/tls/node-tls-connect.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/node/tls/node-tls-connect.test.ts')
-rw-r--r--test/js/node/tls/node-tls-connect.test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/js/node/tls/node-tls-connect.test.ts b/test/js/node/tls/node-tls-connect.test.ts
index 8bc2dcb7a..3bcf49db0 100644
--- a/test/js/node/tls/node-tls-connect.test.ts
+++ b/test/js/node/tls/node-tls-connect.test.ts
@@ -50,7 +50,7 @@ it("Bun.serve() should work with tls and Bun.file()", async () => {
key: COMMON_CERT.key,
},
});
- const res = await fetch(`https://${server.hostname}:${server.port}/`);
+ const res = await fetch(`https://${server.hostname}:${server.port}/`, { tls: { rejectUnauthorized: false } });
expect(await res.text()).toBe("<h1>HELLO</h1>");
server.stop();
});