Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jan 28, 2024
1 parent 7e90499 commit 8218a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ Deno.test("$.request", (t) => {
.url(new URL("/sleep-body/10000", serverUrl))
.showProgress();
const response = await request.fetch();
response.abort("Cancel.");
let caughtErr: unknown;
try {
response.abort("Cancel.");
await response.text();
} catch (err) {
caughtErr = err;
Expand Down

0 comments on commit 8218a51

Please sign in to comment.