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

cancel unnecessary changes in tests

This commit is contained in:
Yoshiya Hinosawa 2024-10-25 15:02:47 +09:00
parent 795c093135
commit cb8cfc8fe3
No known key found for this signature in database
GPG key ID: 9017DB4559488785
2 changed files with 2 additions and 3 deletions

View file

@ -1009,7 +1009,7 @@ Deno.test(
request.on("close", () => {});
request.end();
setTimeout(() => {
request.destroy();
request.destroy(new Error());
resolve();
}, 100);
@ -1024,7 +1024,6 @@ Deno.test(
"[node/http] client destroy before sending request should not error",
async () => {
const { resolve, promise } = Promise.withResolvers<void>();
// TODO(kt3k): This should be "localhost" when we implemented happy-eyeballs for node:net
const request = http.request("http://localhost:5929/");
// Calling this would throw
request.destroy();

View file

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