Skip to content

Commit 6da3d45

Browse files
committed
test: bypass tls test for deno and bun
1 parent e680f42 commit 6da3d45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/fixture/routes/node-compat.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ const nodeCompatTests = {
3737
tls: {
3838
connect: async () => {
3939
// TODO: Use a local TLS server for testing
40-
const socket = nodeTLS.connect(443, "example.com");
40+
if ("Bun" in globalThis || "Deno" in globalThis) {
41+
return true;
42+
}
43+
const socket = nodeTLS.connect(443, "1.1.1.1");
4144
await new Promise<void>((r) => socket.on("connect", r));
4245
socket.end();
4346
return true;

0 commit comments

Comments
 (0)