Skip to content

Commit

Permalink
re-enable a test (denoland#4461)
Browse files Browse the repository at this point in the history
  • Loading branch information
uki00a committed Mar 22, 2020
1 parent 12ff78e commit 07ea145
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions std/examples/tests/curl_test.ts
Expand Up @@ -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" });
}
Expand All @@ -36,8 +33,9 @@ Deno.test({

assertStrictEq(actual, expected);
} finally {
process.close();
server.close();
process.close();
await serverPromise;
}
}
});

0 comments on commit 07ea145

Please sign in to comment.