remove max input size check from fuzz test

This commit is contained in:
Fabio Bozzo
2024-09-17 13:54:42 +02:00
parent 53ef97231d
commit 94a0d4d56e

View File

@@ -491,8 +491,6 @@ func TestPolicyExamples(t *testing.T) {
})
}
const maxFuzzInputLength = 128
func FuzzMatch(f *testing.F) {
// Policy + Data examples
f.Add([]byte(`[["==", ".status", "draft"]]`), []byte(`{"status": "draft"}`))
@@ -522,10 +520,6 @@ func FuzzMatch(f *testing.F) {
)
f.Fuzz(func(t *testing.T, policyBytes []byte, dataBytes []byte) {
if len(policyBytes) > maxFuzzInputLength || len(dataBytes) > maxFuzzInputLength {
t.Skip()
}
policyNode, err := ipld.Decode(policyBytes, dagjson.Decode)
if err != nil {
t.Skip()