Skip to content

Commit

Permalink
Explicitly use ipv4 server for testing. Found an ipv6 request path quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Jul 30, 2015
1 parent d1e74d3 commit 048a1a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/nonProxy-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('livestyle server in non-proxy mode', function () {
compilesass: true
});

request(appInfo.url + '/main.scss', function (err, res, body) {
request('http://127.0.0.1:' + appInfo.port + '/main.scss', function (err, res, body) {
expect(err, 'to be null');
expect(res.statusCode, 'to be', 200);
expect(res.headers['content-type'], 'to contain', 'text/css');
Expand All @@ -131,7 +131,7 @@ describe('livestyle server in non-proxy mode', function () {
compilesass: true
});

request(appInfo.url + '/main.scss', function (err, res, body) {
request('http://127.0.0.1:' + appInfo.port + '/main.scss', function (err, res, body) {
expect(err, 'to be null');
expect(res.statusCode, 'to be', 200);
expect(res.headers['content-type'], 'to contain', 'text/css');
Expand All @@ -153,7 +153,7 @@ describe('livestyle server in non-proxy mode', function () {
compilesass: true
});

request(appInfo.url + '/index.html', function (err, res, body) {
request('http://127.0.0.1:' + appInfo.port + '/index.html', function (err, res, body) {
expect(err, 'to be null');
expect(res.statusCode, 'to be', 200);
expect(res.headers['content-type'], 'to contain', 'text/html');
Expand All @@ -168,7 +168,7 @@ describe('livestyle server in non-proxy mode', function () {
autoprefixer: { browsers: ['last 30 versions'], cascade: false },
});

request(appInfo.url + '/index.html', function (err, res, body) {
request('http://127.0.0.1:' + appInfo.port + '/index.html', function (err, res, body) {
expect(err, 'to be null');
expect(res.statusCode, 'to be', 200);
expect(res.headers['content-type'], 'to contain', 'text/html');
Expand All @@ -192,7 +192,7 @@ describe('livestyle server in non-proxy mode', function () {
var server = app.listen(0);
var info = server.address();

request('http://' + info.address + ':' + info.port + '/index.html', function (err, res, body) {
request('http://127.0.0.1:' + info.port + '/index.html', function (err, res, body) {
expect(err, 'to be null');
expect(res.statusCode, 'to be', 200);
expect(res.headers['content-type'], 'to contain', 'text/html');
Expand Down

0 comments on commit 048a1a2

Please sign in to comment.