Skip to content

Commit

Permalink
msgp: fix dropped test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs authored and philhofer committed May 26, 2021
1 parent 0becd17 commit 205265d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions msgp/number_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ func TestNumber(t *testing.T) {
t.Fatal("marshal error:", err)
}
err = dout[i].EncodeMsg(wr)
if err != nil {
t.Fatal("encode error", err)
}
}
wr.Flush()

Expand Down
3 changes: 3 additions & 0 deletions msgp/read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,9 @@ func TestReadUint64(t *testing.T) {
t.Fatal(err)
}
out, err := rd.ReadUint64()
if err != nil {
t.Fatal(err)
}
if out != num {
t.Errorf("Test case %d: put %d in and got %d out", i, num, out)
}
Expand Down

0 comments on commit 205265d

Please sign in to comment.