We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38376ac commit 07f5e18Copy full SHA for 07f5e18
packages/local-relay/src/RelayServer.test.ts
@@ -1,5 +1,6 @@
1
import * as net from 'net';
2
import * as websocket from 'websocket';
3
+import * as nock from 'nock';
4
import supertest from 'supertest';
5
6
import Host from './Host';
@@ -16,7 +17,7 @@ beforeAll(() => {
16
17
const port = server.listen();
18
19
httpRequest = supertest(server.httpServer);
- wsUrl = `ws://localhost:${port}`;
20
+ wsUrl = `ws://127.0.0.1:${port}`;
21
});
22
23
afterEach(() => {
@@ -25,6 +26,7 @@ afterEach(() => {
25
26
27
afterAll(() => {
28
server.close();
29
+ nock.cleanAll();
30
31
32
describe('port', () => {
0 commit comments