fix: possibly flaky test (#1523)
This commit is contained in:
parent
4f43c9ed63
commit
11b7033611
|
@ -1003,9 +1003,7 @@ describe('node-fetch', () => {
|
|||
}
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
controller.abort();
|
||||
}, 100);
|
||||
controller.abort();
|
||||
|
||||
return expect(promise)
|
||||
.to.eventually.be.rejected
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue