From f40241a037bf568df3e7772a537df0aa0ae4c9fe Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Fri, 5 Jun 2020 11:38:09 +0100 Subject: [PATCH] [misc] downgrade logging when running tests --- .../test/acceptance/coffee/helpers/RealtimeServer.coffee | 3 +-- services/real-time/test/unit/coffee/ChannelManagerTests.coffee | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/real-time/test/acceptance/coffee/helpers/RealtimeServer.coffee b/services/real-time/test/acceptance/coffee/helpers/RealtimeServer.coffee index 12efd1ef13..3a721c18ed 100644 --- a/services/real-time/test/acceptance/coffee/helpers/RealtimeServer.coffee +++ b/services/real-time/test/acceptance/coffee/helpers/RealtimeServer.coffee @@ -1,5 +1,4 @@ app = require('../../../../app') -require("logger-sharelatex").logger.level("info") logger = require("logger-sharelatex") Settings = require("settings-sharelatex") @@ -21,4 +20,4 @@ module.exports = logger.log("clsi running in dev mode") for callback in @callbacks - callback() \ No newline at end of file + callback() diff --git a/services/real-time/test/unit/coffee/ChannelManagerTests.coffee b/services/real-time/test/unit/coffee/ChannelManagerTests.coffee index cb77991f58..354e956283 100644 --- a/services/real-time/test/unit/coffee/ChannelManagerTests.coffee +++ b/services/real-time/test/unit/coffee/ChannelManagerTests.coffee @@ -12,6 +12,7 @@ describe 'ChannelManager', -> @ChannelManager = SandboxedModule.require modulePath, requires: "settings-sharelatex": @settings = {} "metrics-sharelatex": @metrics = {inc: sinon.stub(), summary: sinon.stub()} + "logger-sharelatex": @logger = { log: sinon.stub(), warn: sinon.stub(), error: sinon.stub() } describe "subscribe", ->