diff --git a/parrot/parrot.go b/parrot/parrot.go index 3b4d67680..8d9ea3e1c 100644 --- a/parrot/parrot.go +++ b/parrot/parrot.go @@ -699,6 +699,8 @@ func isValidMethod(method string) bool { http.MethodPatch, http.MethodDelete, http.MethodOptions, + http.MethodConnect, + http.MethodTrace, MethodAny: return true } diff --git a/parrot/parrot_fuzz_test.go b/parrot/parrot_fuzz_test.go index ea32066ce..8e911d791 100644 --- a/parrot/parrot_fuzz_test.go +++ b/parrot/parrot_fuzz_test.go @@ -48,10 +48,12 @@ func FuzzMethodAny(f *testing.F) { f.Add(http.MethodPatch) f.Add(http.MethodDelete) f.Add(http.MethodOptions) + f.Add(http.MethodConnect) + f.Add(http.MethodTrace) f.Fuzz(func(t *testing.T, method string) { if !isValidMethod(method) { - t.Skip("invalid method") + t.Skipf("invalid method '%s'", method) } resp, err := p.Call(method, route.Path) require.NoError(t, err) diff --git a/parrot/testdata/fuzz/FuzzMethodAny/771e938e4458e983 b/parrot/testdata/fuzz/FuzzMethodAny/771e938e4458e983 deleted file mode 100644 index ee3f33997..000000000 --- a/parrot/testdata/fuzz/FuzzMethodAny/771e938e4458e983 +++ /dev/null @@ -1,2 +0,0 @@ -go test fuzz v1 -string("0")