diff --git a/pkg/shaman/checkout/manager_test.go b/pkg/shaman/checkout/manager_test.go index 59453a4f..a7fcd29a 100644 --- a/pkg/shaman/checkout/manager_test.go +++ b/pkg/shaman/checkout/manager_test.go @@ -30,8 +30,12 @@ import ( "testing" "time" + "github.com/mattn/go-colorable" + "github.com/rs/zerolog" + "github.com/rs/zerolog/log" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "projects.blender.org/studio/flamenco/pkg/api" "projects.blender.org/studio/flamenco/pkg/shaman/config" "projects.blender.org/studio/flamenco/pkg/shaman/filestore" @@ -39,6 +43,9 @@ import ( ) func createTestManager() (*Manager, func()) { + output := zerolog.ConsoleWriter{Out: colorable.NewColorableStdout(), TimeFormat: time.RFC3339} + log.Logger = log.Output(output) + conf, confCleanup := config.CreateTestConfig() fileStore := filestore.New(conf) manager := NewManager(conf, fileStore) diff --git a/pkg/shaman/cleanup_test.go b/pkg/shaman/cleanup_test.go index ce74fed1..6378bddf 100644 --- a/pkg/shaman/cleanup_test.go +++ b/pkg/shaman/cleanup_test.go @@ -30,9 +30,12 @@ import ( "testing" "time" + "github.com/mattn/go-colorable" + "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "projects.blender.org/studio/flamenco/pkg/shaman/config" "projects.blender.org/studio/flamenco/pkg/shaman/filestore" "projects.blender.org/studio/flamenco/pkg/shaman/jwtauth" @@ -40,6 +43,9 @@ import ( ) func createTestShaman() (*Server, func()) { + output := zerolog.ConsoleWriter{Out: colorable.NewColorableStdout(), TimeFormat: time.RFC3339} + log.Logger = log.Output(output) + conf, confCleanup := config.CreateTestConfig() shaman := NewServer(conf, jwtauth.AlwaysDeny{}) return shaman, confCleanup