Skip to content

Commit e1031ff

Browse files
committed
changed proxy test from localhost to 127.0.0.1 to fix tests on travis
1 parent 929c982 commit e1031ff

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

test/proxy-test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
*/
77

88
var assert = require('assert'),
9-
http = require('http'),
10-
url = require('url'),
11-
WebPageTest = require('../lib/webpagetest'),
12-
wpt = new WebPageTest();
9+
http = require('http'),
10+
url = require('url'),
11+
WebPageTest = require('../lib/webpagetest'),
12+
wpt = new WebPageTest();
1313

1414
// proxy for test on 5432 port
1515
http.createServer(function(req, res) {
@@ -27,7 +27,7 @@ http.createServer(function(req, res) {
2727
method: req.method,
2828
headers: req.headers
2929
},
30-
function(orgres) {
30+
function (orgres) {
3131
res.writeHead(orgres.statusCode, orgres.headers);
3232
orgres.on('data', function(chunk) {
3333
res.write(chunk);
@@ -36,7 +36,7 @@ http.createServer(function(req, res) {
3636
res.end();
3737
});
3838
});
39-
if(body.length > 0) {
39+
if (body.length > 0) {
4040
orgreq.write(body.join(''));
4141
}
4242
orgreq.end();
@@ -48,7 +48,7 @@ describe('Run via proxy', function() {
4848

4949
it('gets a test status request', function(done) {
5050
wpt.getTestStatus('120816_V2_2', {
51-
proxy: 'localhost:5432'
51+
proxy: '127.0.0.1:5432'
5252
}, function (err, data) {
5353
if (err) return done(err);
5454
assert.equal(data.data.id, '120816_V2_2');

0 commit comments

Comments
 (0)