diff --git a/revivelib/core_test.go b/revivelib/core_test.go index 9dd15056e..3e401f67a 100644 --- a/revivelib/core_test.go +++ b/revivelib/core_test.go @@ -4,6 +4,7 @@ import ( "strings" "testing" + "github.com/fatih/color" "github.com/mgechev/revive/config" "github.com/mgechev/revive/lint" "github.com/mgechev/revive/revivelib" @@ -45,6 +46,7 @@ func TestReviveFormat(t *testing.T) { } // ACT + color.NoColor = true failures, exitCode, err := revive.Format("stylish", failuresChan) // ASSERT if err != nil {