1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 23:59:59 -05:00

re-enable a test (#4461)

This commit is contained in:
uki00a 2020-03-23 03:41:42 +09:00 committed by GitHub
parent 12ff78ed4c
commit 07ea145ec4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}
});