Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Commit 2b9278a

Browse files
committed
Fixed failing socket-io test
1 parent f5a450c commit 2b9278a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

__tests__/devalpha.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ test('stream consumers can apply backpressure', done => {
399399
test('dashboard works as expected', (done) => {
400400
let clientEvents = []
401401
const serverEvents = []
402-
const runTime = -1
402+
let runTime = -1
403403

404404
const trader = createTrader({
405405
feeds: {
@@ -434,7 +434,9 @@ test('dashboard works as expected', (done) => {
434434
})
435435

436436
socket.on('connect', () => {
437-
socket.emit(DASHBOARD_INITIALIZE)
437+
setTimeout(() => {
438+
socket.emit(DASHBOARD_INITIALIZE)
439+
}, 100)
438440
})
439441

440442
socket.open()

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"decimal.js": "^10.0.0",
1313
"highland": "^3.0.0-beta.6",
1414
"redux": "^4.0.0",
15-
"socket.io": "^2.1.0"
15+
"socket.io": "^2.1.1"
1616
},
1717
"devDependencies": {
1818
"@types/jest": "^23.3.1",
1919
"coveralls": "^3.0.1",
2020
"jest": "^23.5.0",
21-
"socket.io-client": "^2.1.0",
21+
"socket.io-client": "^2.1.1",
2222
"ts-jest": "^23.1.3",
2323
"tslint": "^5.9.1",
2424
"tslint-config-airbnb": "^5.8.0",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy