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:
parent
795c093135
commit
cb8cfc8fe3
2 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue