Removing checks around websockets as redis properly available in testing now.
This commit is contained in:
parent
969ee52c29
commit
16e929bd81
|
@ -10,12 +10,9 @@ let gridSocket: GridSocket | undefined
|
||||||
let builderSocket: BuilderSocket | undefined
|
let builderSocket: BuilderSocket | undefined
|
||||||
|
|
||||||
export const initialise = (app: Koa, server: http.Server) => {
|
export const initialise = (app: Koa, server: http.Server) => {
|
||||||
// currently we use ioredis-mock which doesn't work with the websocket system for testing
|
clientAppSocket = new ClientAppSocket(app, server)
|
||||||
if (!env.isTest()) {
|
gridSocket = new GridSocket(app, server)
|
||||||
clientAppSocket = new ClientAppSocket(app, server)
|
builderSocket = new BuilderSocket(app, server)
|
||||||
gridSocket = new GridSocket(app, server)
|
|
||||||
builderSocket = new BuilderSocket(app, server)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export { clientAppSocket, gridSocket, builderSocket }
|
export { clientAppSocket, gridSocket, builderSocket }
|
||||||
|
|
Loading…
Reference in New Issue