fix unstable ws test handler + improve logging

This commit is contained in:
tiagosiebler
2022-12-28 13:40:20 +00:00
parent dcf5050d32
commit f0394f91e9
4 changed files with 19 additions and 16 deletions

View File

@@ -70,12 +70,14 @@ describe('Public Unified Margin Websocket Client (Perps - USDC)', () => {
s: 'BTCUSDT',
u: expect.any(Number),
},
wsKey: WS_KEY_MAP.unifiedPerpUSDTPublic,
topic: 'orderbook.25.BTCUSDC',
ts: expect.any(Number),
type: 'snapshot',
wsKey: WS_KEY_MAP.unifiedPerpUSDTPublic,
});
} catch (e) {
console.error('unified margin perp ws public error: ', e);
// no data
expect(e).toBeFalsy();
}