mirror of
https://github.com/adnanh/webhook.git
synced 2026-09-24 04:29:41 +08:00
test: fix non-constant Errorf format strings (#765)
Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
This commit is contained in:
committed by
GitHub
parent
92742d64db
commit
2548ffb800
@@ -434,7 +434,7 @@ func TestHooksLoadFromFile(t *testing.T) {
|
||||
h := &Hooks{}
|
||||
err := h.LoadFromFile(tt.path, tt.asTemplate)
|
||||
if (err == nil) != tt.ok {
|
||||
t.Errorf(err.Error())
|
||||
t.Errorf("%s", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -451,7 +451,7 @@ func TestHooksTemplateLoadFromFile(t *testing.T) {
|
||||
h := &Hooks{}
|
||||
err := h.LoadFromFile(tt.path, tt.asTemplate)
|
||||
if (err == nil) != tt.ok {
|
||||
t.Errorf(err.Error())
|
||||
t.Errorf("%s", err)
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user