mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04: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();
|
||||
Deno.test({
|
||||
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 () => {
|
||||
const server = serve({ port });
|
||||
(async (): Promise<void> => {
|
||||
const serverPromise = (async (): Promise<void> => {
|
||||
for await (const req of server) {
|
||||
req.respond({ body: "Hello world" });
|
||||
}
|
||||
|
@ -36,8 +33,9 @@ Deno.test({
|
|||
|
||||
assertStrictEq(actual, expected);
|
||||
} finally {
|
||||
process.close();
|
||||
server.close();
|
||||
process.close();
|
||||
await serverPromise;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue