Skip to content

Commit a4bfc4f

Browse files
test-patch-2
1 parent d6ca7c8 commit a4bfc4f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/config/config_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package config
22

33
import (
4+
"fmt"
45
"testing"
56

67
"github.com/stretchr/testify/assert"
@@ -30,8 +31,6 @@ func TestGetExcludePatterns(t *testing.T) {
3031
break
3132
}
3233
}
33-
if !inDefaultExc {
34-
t.Fatalf("%s must appear inside DefaultExcludePatterns.", p.ID)
35-
}
34+
assert.True(t, inDefaultExc, fmt.Sprintf("%s must appear inside DefaultExcludePatterns.", p.ID))
3635
}
3736
}

0 commit comments

Comments
 (0)