Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
test: make tests run on Node.js 12
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Nov 4, 2023
1 parent 0d322a1 commit 2550eb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/fetch-retry/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ test("don't retry if the request was aborted after timeout", async () => {

const timeoutHandler = setTimeout(() => {
ponyfilledController.abort();
nativeController?.abort();
if (nativeController) {
nativeController.abort();
}
}, timeout);

const opts1 = {
Expand Down

0 comments on commit 2550eb9

Please sign in to comment.