diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 10979e4d315a..208188bc810a 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -1,6 +1,7 @@ package config import ( + "fmt" "testing" "github.com/stretchr/testify/assert" @@ -30,8 +31,6 @@ func TestGetExcludePatterns(t *testing.T) { break } } - if !inDefaultExc { - t.Fatalf("%s must appear inside DefaultExcludePatterns.", p.ID) - } + assert.True(t, inDefaultExc, fmt.Sprintf("%s must appear inside DefaultExcludePatterns.", p.ID)) } }