Skip to content

Commit 11b7033

Browse files
authored
fix: possibly flaky test (#1523)
1 parent 4f43c9e commit 11b7033

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

test/main.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,9 +1003,7 @@ describe('node-fetch', () => {
10031003
}
10041004
});
10051005

1006-
setTimeout(() => {
1007-
controller.abort();
1008-
}, 100);
1006+
controller.abort();
10091007

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

1032-
setTimeout(() => {
1033-
controller.abort();
1034-
}, 100);
1030+
controller.abort();
10351031

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

0 commit comments

Comments
 (0)