slight logger improvement for test

This commit is contained in:
tiagosiebler
2022-09-16 00:51:18 +01:00
parent bd09cf8109
commit a9dd6face9
7 changed files with 43 additions and 23 deletions

View File

@@ -4,7 +4,7 @@ import {
WS_KEY_MAP,
} from '../../src';
import {
silentLogger,
getSilentLogger,
waitForSocketEvent,
WS_OPEN_EVENT_PARTIAL,
} from '../ws.util';
@@ -27,7 +27,7 @@ describe('Private Inverse Perps Websocket Client', () => {
key: 'bad',
secret: 'bad',
},
silentLogger
getSilentLogger('expect401')
);
const wsOpenPromise = waitForSocketEvent(badClient, 'open', 2500);
@@ -53,7 +53,10 @@ describe('Private Inverse Perps Websocket Client', () => {
});
beforeAll(() => {
wsClient = new WebsocketClient(wsClientOptions, silentLogger);
wsClient = new WebsocketClient(
wsClientOptions,
getSilentLogger('expectSuccess')
);
wsClient.connectPrivate();
});