Skip to content

Commit

Permalink
test(fuzz): update after Any rework
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Nov 4, 2021
1 parent fa75ae6 commit 789e7d9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ func FuzzDecEnc(f *testing.F) {
t.Skip()
}
w := GetEncoder()
if err := w.Any(v); err != nil {
t.Fatal(err)
}
w.Any(v)

// Parsing from buf to new value.
r.ResetBytes(w.Bytes())
Expand All @@ -62,9 +60,7 @@ func FuzzDecEnc(f *testing.F) {
}
b := w.Bytes()
w.SetBytes(nil)
if err := parsed.Write(w); err != nil {
t.Fatal(err)
}
parsed.Write(w)
if !bytes.Equal(w.Bytes(), b) {
t.Fatalf("%s != %s", w, b)
}
Expand Down

0 comments on commit 789e7d9

Please sign in to comment.