Permalink
Browse files

Apparently this detection does not work on travis

This reverts commit 7554b2a.
  • Loading branch information...
1 parent 7554b2a commit 00e1cf02ebf2fb05d6bef97b426ccd6032361674 @brycekahle brycekahle committed Jan 23, 2017
Showing with 1 addition and 10 deletions.
  1. +1 −9 tests/lib/test-utils.js
  2. +0 −1 tests/node.js
@@ -7,22 +7,14 @@ var SockJS = require('../../lib/entry')
;
var MPrefix = '_sockjs_global';
-var localServerAddress = 'http://localhost:8081';
module.exports = {
getSameOriginUrl: function () {
if (global.location) {
return urlUtils.getOrigin(global.location.href);
}
// travis does not currently have IPv6 enabled for several envs
- return localServerAddress;
- }
-
-, updateTestServerAddress: function(server) {
- var addr = server.address();
- localServerAddress = addr.family === 'IPv6'
- ? 'http://[::1]:' + addr.port
- : 'http://localhost:' + addr.port;
+ return 'http://localhost:8081';
}
, getCrossOriginUrl: function () {
View
@@ -1,7 +1,6 @@
'use strict';
var server = require('./support/sockjs_server');
-require('./lib/test-utils').updateTestServerAddress(server);
require('./lib/main');
require('./lib/main-node');

0 comments on commit 00e1cf0

Please sign in to comment.