Skip to content

Commit 020b27a

Browse files
committed
Yet another fix
1 parent 52373d0 commit 020b27a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

__tests__/index.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ describe('Hub', () => {
284284

285285
it('should set the hostname and ip address on the websocket client', async () => {
286286
await hubClient.isReady();
287-
const ipAddress = process.env.CI ? '::ffff:127.0.0.1' : '::1';
287+
const ipAddress = '::1';
288288
const ws = Array.from(hub.wss.clients)[0];
289289
assert.strictEqual(ws.host, 'localhost:4009');
290290
assert.strictEqual(ws.ipAddress, ipAddress);

__tests__/lib/ipCheck.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('IP Address checking', () => {
3434
});
3535

3636
it('should only allow clients to connect if they have an allowed ip address', async () => {
37-
const ipAddress = process.env.CI ? '::ffff:127.0.0.1' : '::1';
37+
const ipAddress = '::1';
3838
const hub = new Hub({
3939
port: 8001,
4040
allowedIpAddresses: [ipAddress],

0 commit comments

Comments
 (0)