Commit 2dbe1f14 authored by Steve Azzopardi's avatar Steve Azzopardi

Disable color output for log test

When running the test from the terminal on macOS the output is being
rendered differently causing the test to fail when it shouldn't
parent e3392bdf
Pipeline #47131534 passed with stages
in 27 minutes and 27 seconds
......@@ -74,7 +74,13 @@ func TestServiceLogHook(t *testing.T) {
func TestServiceLogHookWithSpecifiedLevel(t *testing.T) {
entry := logrus.NewEntry(logrus.New())
// Disable colors to avoid any OS specific formatting.
formatter := &logrus.TextFormatter{DisableColors: true}
logger := logrus.New()
logger.Formatter = formatter
entry := logrus.NewEntry(logger)
entry.Message = "test message"
sysLogger := new(mockSystemLogger)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment