Skip to content

Commit

Permalink
fix: possibly flaky test (#1523)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Jul 12, 2022
1 parent 4f43c9e commit 11b7033
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/main.js
Expand Up @@ -1003,9 +1003,7 @@ describe('node-fetch', () => {
}
});

setTimeout(() => {
controller.abort();
}, 100);
controller.abort();

return expect(promise)
.to.eventually.be.rejected
Expand All @@ -1029,9 +1027,7 @@ describe('node-fetch', () => {
})
];

setTimeout(() => {
controller.abort();
}, 100);
controller.abort();

return Promise.all(fetches.map(fetched => expect(fetched)
.to.eventually.be.rejected
Expand Down

0 comments on commit 11b7033

Please sign in to comment.