Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed May 4, 2023
1 parent 9fe0842 commit 9e84559
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions packages/pac-proxy-agent/test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand All @@ -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', () => {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 :/
});
});

0 comments on commit 9e84559

Please sign in to comment.