Skip to content

Commit

Permalink
Work around nock error
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Sofi-zada <[email protected]>
  • Loading branch information
rafasofizada committed Nov 23, 2021
1 parent 38376ac commit 07f5e18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/local-relay/src/RelayServer.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as net from 'net';
import * as websocket from 'websocket';
import * as nock from 'nock';
import supertest from 'supertest';

import Host from './Host';
Expand All @@ -16,7 +17,7 @@ beforeAll(() => {
const port = server.listen();

httpRequest = supertest(server.httpServer);
wsUrl = `ws://localhost:${port}`;
wsUrl = `ws://127.0.0.1:${port}`;
});

afterEach(() => {
Expand All @@ -25,6 +26,7 @@ afterEach(() => {

afterAll(() => {
server.close();
nock.cleanAll();
});

describe('port', () => {
Expand Down

0 comments on commit 07f5e18

Please sign in to comment.