Skip to content

Commit 00e1cf0

Browse files
committed
Apparently this detection does not work on travis
This reverts commit 7554b2a.
1 parent 7554b2a commit 00e1cf0

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

tests/lib/test-utils.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,14 @@ var SockJS = require('../../lib/entry')
77
;
88

99
var MPrefix = '_sockjs_global';
10-
var localServerAddress = 'http://localhost:8081';
1110

1211
module.exports = {
1312
getSameOriginUrl: function () {
1413
if (global.location) {
1514
return urlUtils.getOrigin(global.location.href);
1615
}
1716
// travis does not currently have IPv6 enabled for several envs
18-
return localServerAddress;
19-
}
20-
21-
, updateTestServerAddress: function(server) {
22-
var addr = server.address();
23-
localServerAddress = addr.family === 'IPv6'
24-
? 'http://[::1]:' + addr.port
25-
: 'http://localhost:' + addr.port;
17+
return 'http://localhost:8081';
2618
}
2719

2820
, getCrossOriginUrl: function () {

tests/node.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
var server = require('./support/sockjs_server');
4-
require('./lib/test-utils').updateTestServerAddress(server);
54

65
require('./lib/main');
76
require('./lib/main-node');

0 commit comments

Comments
 (0)