mirror of
https://github.com/denoland/deno.git
synced 2025-01-11 08:33:43 -05:00
re-enable a test (#4461)
This commit is contained in:
parent
12ff78ed4c
commit
07ea145ec4
1 changed files with 3 additions and 5 deletions
|
@ -6,12 +6,9 @@ import { randomPort } from "../../http/test_util.ts";
|
||||||
const port = randomPort();
|
const port = randomPort();
|
||||||
Deno.test({
|
Deno.test({
|
||||||
name: "[examples/curl] send a request to a specified url",
|
name: "[examples/curl] send a request to a specified url",
|
||||||
// FIXME(bartlomieju): this test is leaking both resources and ops,
|
|
||||||
// and causes interference with other tests
|
|
||||||
ignore: true,
|
|
||||||
fn: async () => {
|
fn: async () => {
|
||||||
const server = serve({ port });
|
const server = serve({ port });
|
||||||
(async (): Promise<void> => {
|
const serverPromise = (async (): Promise<void> => {
|
||||||
for await (const req of server) {
|
for await (const req of server) {
|
||||||
req.respond({ body: "Hello world" });
|
req.respond({ body: "Hello world" });
|
||||||
}
|
}
|
||||||
|
@ -36,8 +33,9 @@ Deno.test({
|
||||||
|
|
||||||
assertStrictEq(actual, expected);
|
assertStrictEq(actual, expected);
|
||||||
} finally {
|
} finally {
|
||||||
process.close();
|
|
||||||
server.close();
|
server.close();
|
||||||
|
process.close();
|
||||||
|
await serverPromise;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue