Skip to content

Commit

Permalink
fix: update logger scope
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Feb 2, 2020
1 parent 9e05dc6 commit 4e8cf7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/global-agent/factories/createGlobalProxyAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ test('proxies HTTPS request', async (t) => {
globalProxyAgent.HTTP_PROXY = proxyServer.url;

const response = await new Promise((resolve) => {
https.get('https://127.0.0.1', createHttpResponseResolver(resolve));
https.get('https://127.0.0.1', {}, createHttpResponseResolver(resolve));
});

t.assert(response.body === 'OK');
Expand All @@ -219,7 +219,7 @@ test('proxies HTTPS request with proxy-authorization header', async (t) => {
globalProxyAgent.HTTP_PROXY = 'http://foo@127.0.0.1:' + proxyServer.port;

const response = await new Promise((resolve) => {
https.get('https://127.0.0.1', createHttpResponseResolver(resolve));
https.get('https://127.0.0.1', {}, createHttpResponseResolver(resolve));
});

t.assert(response.body === 'OK');
Expand All @@ -245,7 +245,7 @@ test('proxies HTTPS request with dedicated proxy', async (t) => {
globalProxyAgent.HTTPS_PROXY = proxyServer.url;

const response = await new Promise((resolve) => {
https.get('https://127.0.0.1', createHttpResponseResolver(resolve));
https.get('https://127.0.0.1', {}, createHttpResponseResolver(resolve));
});

t.assert(response.body === 'OK');
Expand All @@ -260,7 +260,7 @@ test('ignores dedicated HTTPS proxy for HTTP urls', async (t) => {
globalProxyAgent.HTTPS_PROXY = 'http://example.org';

const response = await new Promise((resolve) => {
http.get('http://127.0.0.1', createHttpResponseResolver(resolve));
http.get('http://127.0.0.1', {}, createHttpResponseResolver(resolve));
});

t.assert(response.body === 'OK');
Expand Down

0 comments on commit 4e8cf7b

Please sign in to comment.