Removing checks around websockets as redis properly available in testing now.

This commit is contained in:
mike12345567 2023-05-31 18:09:15 +01:00
parent 969ee52c29
commit 16e929bd81
1 changed files with 3 additions and 6 deletions

View File

@ -10,12 +10,9 @@ let gridSocket: GridSocket | undefined
let builderSocket: BuilderSocket | undefined
export const initialise = (app: Koa, server: http.Server) => {
// currently we use ioredis-mock which doesn't work with the websocket system for testing
if (!env.isTest()) {
clientAppSocket = new ClientAppSocket(app, server)
gridSocket = new GridSocket(app, server)
builderSocket = new BuilderSocket(app, server)
}
clientAppSocket = new ClientAppSocket(app, server)
gridSocket = new GridSocket(app, server)
builderSocket = new BuilderSocket(app, server)
}
export { clientAppSocket, gridSocket, builderSocket }