1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-07 06:46:59 -05:00

fix tls_test.ts. Now it needs some listener to cause initial read

This commit is contained in:
Yoshiya Hinosawa 2024-10-25 00:32:42 +09:00
parent 408e7e545d
commit ee4c391886
No known key found for this signature in database
GPG key ID: 9017DB4559488785

View file

@ -213,7 +213,7 @@ Deno.test("tls.connect() throws InvalidData when there's error in certificate",
host: "localhost", host: "localhost",
port: 4557, port: 4557,
}); });
conn.on("data", () => {});
conn.on("error", (err) => { conn.on("error", (err) => {
console.log(err); console.log(err);
}); });