fix: possibly flaky test (#1523)

This commit is contained in:
Khafra 2022-07-12 12:31:49 -04:00 committed by GitHub
parent 4f43c9ed63
commit 11b7033611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -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