Skip to content

Commit

Permalink
Merge pull request #357 from Jille/tests-fix
Browse files Browse the repository at this point in the history
test: Actually run the test suite in msgpack_test.go
  • Loading branch information
vmihailenco committed Oct 2, 2023
2 parents ecf8fa7 + 1f7263d commit 3f7bd80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion msgpack_test.go
Expand Up @@ -26,12 +26,16 @@ type MsgpackTest struct {
dec *msgpack.Decoder
}

func (t *MsgpackTest) SetUpTest() {
func (t *MsgpackTest) SetupTest() {
t.buf = &bytes.Buffer{}
t.enc = msgpack.NewEncoder(t.buf)
t.dec = msgpack.NewDecoder(bufio.NewReader(t.buf))
}

func TestMsgpackTestSuite(t *testing.T) {
suite.Run(t, new(MsgpackTest))
}

func (t *MsgpackTest) TestDecodeNil() {
t.NotNil(t.dec.Decode(nil))
}
Expand Down

0 comments on commit 3f7bd80

Please sign in to comment.