test: fix non-constant Errorf format strings (#765)

Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
This commit is contained in:
Mikel Olasagasti Uranga
2026-08-05 22:05:29 +02:00
committed by GitHub
parent 92742d64db
commit 2548ffb800
+2 -2
View File
@@ -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
}