Skip to content

Commit

Permalink
re-enable a test (denoland/deno#4461)
Browse files Browse the repository at this point in the history
  • Loading branch information
uki00a authored and caspervonb committed Jan 24, 2021
1 parent 320650e commit ac2b226
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/tests/curl_test.ts
Original file line number Diff line number Diff line change
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 ac2b226

Please sign in to comment.