From 83bcda2c9441dbac5726f38897b569813ebca921 Mon Sep 17 00:00:00 2001 From: Khafra <42794878+KhafraDev@users.noreply.github.com> Date: Wed, 16 Mar 2022 15:08:27 -0400 Subject: [PATCH] fix ci failure --- test/node-fetch/main.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/node-fetch/main.js b/test/node-fetch/main.js index e1df2ffeb04..77a61a29454 100644 --- a/test/node-fetch/main.js +++ b/test/node-fetch/main.js @@ -780,9 +780,8 @@ describe('node-fetch', () => { } ) ] - setTimeout(() => { - controller.abort() - }, 100) + + controller.abort() return Promise.all(fetches.map(fetched => expect(fetched) .to.eventually.be.rejected @@ -806,9 +805,8 @@ describe('node-fetch', () => { } ) ] - setTimeout(() => { - controller.abort() - }, 100) + + controller.abort() return Promise.all(fetches.map(fetched => expect(fetched) .to.eventually.be.rejected