test(modules): fix favicon_test checkMatchers arity after matchers-condition (#228)

#189 added the condition param to checkMatchers; the favicon matcher test
(#183) still called the 3-arg form, breaking the build once both landed.
pass "" (default and-condition) to restore single-matcher semantics.
This commit is contained in:
celeste
2026-06-22 21:23:12 -07:00
committed by GitHub
parent 672858b1fe
commit 17cf26cd82
+1 -1
View File
@@ -142,7 +142,7 @@ func TestCheckMatcherFaviconNegative(t *testing.T) {
signed := int64(fingerprint.FaviconHash(faviconFixture))
matchers := []Matcher{{Type: "favicon", Hash: []int64{signed}, Negative: true}}
resp := fakeResponse(t, 200, nil)
if checkMatchers(matchers, resp, string(faviconFixture)) {
if checkMatchers(matchers, "", resp, string(faviconFixture)) {
t.Error("negative favicon matcher should not match its own hash")
}
}