diff --git a/text_formatter_test.go b/text_formatter_test.go index b0d3a91..8dfec5a 100644 --- a/text_formatter_test.go +++ b/text_formatter_test.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "os" + "runtime" "sort" "strings" "testing" @@ -443,7 +444,11 @@ func TestTextFormatterIsColored(t *testing.T) { os.Setenv("CLICOLOR_FORCE", val.clicolorForceVal) } res := tf.isColored() - assert.Equal(subT, val.expectedResult, res) + if runtime.GOOS == "windows" { + assert.Equal(subT, false, res) + } else { + assert.Equal(subT, val.expectedResult, res) + } }) } }