Permalink
Browse files

test: don't use `url.parse()` for one of the tests

Just to make sure explicit arguments work as expected still.
  • Loading branch information...
1 parent 20fd5d2 commit b0bcd51f790b3cbc6e879d4d461c80ea8146f0fb @TooTallNate committed Jul 15, 2015
Showing with 6 additions and 4 deletions.
  1. +6 −4 test/test.js
View
@@ -251,10 +251,12 @@ describe('ProxyAgent', function () {
res.end(JSON.stringify(req.headers));
});
- var uri = 'https://127.0.0.1:' + proxyHttpsPort;
- var proxy = url.parse(uri);
- proxy.rejectUnauthorized = false;
- var agent = new ProxyAgent(proxy);
+ var agent = new ProxyAgent({
+ protocol: 'https:',
+ host: '127.0.0.1',
+ port: proxyHttpsPort,
+ rejectUnauthorized: false
+ });
var opts = url.parse('https://127.0.0.1:' + httpsPort + '/test');
opts.agent = agent;

0 comments on commit b0bcd51

Please sign in to comment.