From b6216586c44c3337e63ca16d908cefd8edd19ef0 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Fri, 13 Oct 2023 12:46:24 +0100 Subject: [PATCH] Fixed "Cannot read properties of null (reading 'off')" noise in tests (#18610) no issue - the lexical multiplayer experiment was causing noise in e2e tests because it tried to use `ghostServer.httpServer` which doesn't exist --- ghost/core/core/server/services/lexical-multiplayer/service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/core/core/server/services/lexical-multiplayer/service.js b/ghost/core/core/server/services/lexical-multiplayer/service.js index e0b3de27ad..fa5d8b1fe0 100644 --- a/ghost/core/core/server/services/lexical-multiplayer/service.js +++ b/ghost/core/core/server/services/lexical-multiplayer/service.js @@ -93,7 +93,7 @@ module.exports = { _disable = async () => { logging.info('Stopping lexical multiplayer websockets service'); - ghostServer.httpServer.off('upgrade', handleUpgrade); + ghostServer.httpServer?.off('upgrade', handleUpgrade); if (wss) { _isClosing = true;