From 9e84559f0f85ba2430e991eb4f8d2a12d8801506 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Thu, 4 May 2023 00:25:06 -0700 Subject: [PATCH] . --- packages/pac-proxy-agent/test/test.ts | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/packages/pac-proxy-agent/test/test.ts b/packages/pac-proxy-agent/test/test.ts index 10e8c045..10121944 100644 --- a/packages/pac-proxy-agent/test/test.ts +++ b/packages/pac-proxy-agent/test/test.ts @@ -193,9 +193,6 @@ describe('PacProxyAgent', () => { }); it('should fall back to the next proxy after one fails', async () => { - // This test is slow on Windows :/ - //this.timeout(10000); - let gotReq = false; httpServer.once('request', function (req, res) { res.end(JSON.stringify(req.headers)); @@ -226,12 +223,9 @@ describe('PacProxyAgent', () => { assert.equal(httpServerUrl.host, data.host); assert.equal(proxyCount, 4); assert(gotReq); - }); + }, 10000); // This test is slow on Windows :/ it('should support `fallbackToDirect` option', async () => { - // This test is slow on Windows :/ - //this.timeout(10000); - let gotReq = false; httpServer.once('request', function (req, res) { res.end(JSON.stringify(req.headers)); @@ -249,7 +243,7 @@ describe('PacProxyAgent', () => { const data = await json(res); assert.equal(httpServerUrl.host, data.host); assert(gotReq); - }); + }, 10000); // This test is slow on Windows :/ }); describe('"https" module', () => { @@ -331,9 +325,6 @@ describe('PacProxyAgent', () => { }); it('should fall back to the next proxy after one fails', async () => { - // This test is slow on Windows :/ - //this.timeout(10000); - let gotReq = false; httpsServer.once('request', function (req, res) { gotReq = true; @@ -366,6 +357,6 @@ describe('PacProxyAgent', () => { assert.equal(httpsServerUrl.host, data.host); assert.equal(proxyCount, 4); assert(gotReq); - }); + }, 10000); // This test is slow on Windows :/ }); });