Skip to content

Commit

Permalink
Merge branch 'main' into move-util-deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Dec 21, 2022
2 parents 83589fb + c122c27 commit d495293
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions http/server_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1173,14 +1173,10 @@ Deno.test("Server should not close the http2 downstream connection when the resp
});
const resp1 = await fetch(url, { client });
const resp2 = await fetch(url, { client });
const resp3 = await fetch(url, { client });

const err = await assertRejects(async () => {
const data = await resp3.text();
// Note: the lone above should be throwing - but it's not right now due to
// a bug in ext/http. So for now we will add a check for the empty string
// (which is what we expect to be returned in case of this bug).
if (data === "") throw new Error("the stream errored!");
const resp3 = await fetch(url, { client });
const _data = await resp3.text();
});
assert(err);
a.resolve();
Expand Down

0 comments on commit d495293

Please sign in to comment.