mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
use random port in a case in http_test
This commit is contained in:
parent
e2dc215e11
commit
18cbca8d88
1 changed files with 2 additions and 1 deletions
|
@ -689,6 +689,7 @@ Deno.test("[node/http] ClientRequest handle non-string headers", async () => {
|
|||
method: "POST",
|
||||
headers: { 1: 2 },
|
||||
}, (resp) => {
|
||||
console.log("resp", resp);
|
||||
headers = resp.headers;
|
||||
|
||||
resp.on("data", () => {});
|
||||
|
@ -1050,7 +1051,7 @@ Deno.test(
|
|||
let receivedRequest = false;
|
||||
const requestClosed = Promise.withResolvers<void>();
|
||||
const ac = new AbortController();
|
||||
const server = Deno.serve({ signal: ac.signal }, () => {
|
||||
const server = Deno.serve({ port: 0, signal: ac.signal }, () => {
|
||||
receivedRequest = true;
|
||||
return new Response(null);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue