From 711ada8ec864a70d6387c49f406a1612d45d92b5 Mon Sep 17 00:00:00 2001 From: Khafra <42794878+KhafraDev@users.noreply.github.com> Date: Thu, 17 Mar 2022 01:40:37 -0400 Subject: [PATCH] fix ci failure (#1286) --- 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