Skip to content

Commit

Permalink
check err on base_test
Browse files Browse the repository at this point in the history
  • Loading branch information
henrod committed May 28, 2019
1 parent a8a9f59 commit e0ae66f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion acceptorwrapper/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"testing"

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/topfreegames/pitaya/mocks"
)

Expand Down Expand Up @@ -32,7 +33,8 @@ func TestListenAndServe(t *testing.T) {
Acceptor: mockAcceptor,
connChan: make(chan net.Conn),
wrapConn: func(c net.Conn) net.Conn {
c.Read([]byte{})
_, err := c.Read([]byte{})
assert.NoError(t, err)
return c
},
}
Expand Down

0 comments on commit e0ae66f

Please sign in to comment.