Skip to content

Commit

Permalink
Tweak fuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Mar 2, 2023
1 parent ec6ee17 commit 48c6c5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions multiaddr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,7 @@ func FuzzPercentEncode(f *testing.F) {
f.Fuzz(func(t *testing.T, in string) {
in = strings.TrimRight(in, "/")
in = manySlashes.ReplaceAllString(in, "/")
in = strings.ReplaceAll(in, "%2f", "%2F")
ma, err := NewMultiaddr(in)
if err == nil {
require.Equal(t, in, ma.String())
Expand Down

0 comments on commit 48c6c5b

Please sign in to comment.