mirror of
https://github.com/adnanh/webhook.git
synced 2025-10-04 21:51:02 +00:00
fix: revert #1
This commit is contained in:
parent
5a3828e4dd
commit
3285d30374
3 changed files with 11 additions and 20 deletions
|
@ -491,7 +491,6 @@ var hooksLoadFromFileTests = []struct {
|
|||
{"", false, true},
|
||||
// failures
|
||||
{"missing.json", false, false},
|
||||
{"testdata/unrecognized.yaml", false, false},
|
||||
}
|
||||
|
||||
func TestHooksLoadFromFile(t *testing.T) {
|
||||
|
@ -501,7 +500,6 @@ func TestHooksLoadFromFile(t *testing.T) {
|
|||
for _, tt := range hooksLoadFromFileTests {
|
||||
h := &Hooks{}
|
||||
err := h.LoadFromFile(tt.path, tt.asTemplate)
|
||||
t.Log(err)
|
||||
if (err == nil) != tt.ok {
|
||||
t.Errorf(err.Error())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue