Commit 03a0f894 authored by Alessio Caiazza's avatar Alessio Caiazza 🔴

Merge branch 'fix-macos-log-test' into 'master'

Disable color output for log test

See merge request gitlab-org/gitlab-runner!1182
parents 40a22cf9 2dbe1f14
Pipeline #47149024 passed with stages
in 32 minutes and 57 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