diff --git a/pkg/utils/test/test.go b/pkg/utils/test/test.go index 2c4c1f5..513d946 100644 --- a/pkg/utils/test/test.go +++ b/pkg/utils/test/test.go @@ -43,8 +43,7 @@ func RunTestParsingLogs(t *testing.T, runTest func() error, parsedMsg interface{ var buf bytes.Buffer // disable styling and time for tests - pterm.DisableStyling() - root.Printer = root.Printer.WithWriter(&buf) + root.Printer = output.NewPrinter(pterm.LogLevelInfo, pterm.LogFormatterJSON, &buf) root.Printer.Logger = root.Printer.Logger.WithTime(false) err := runTest()