Skip to content

Commit

Permalink
fix redis pinger unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhao committed Dec 15, 2018
1 parent a1960e6 commit 4288f5b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions proto/redis/pinger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package redis
import (
"testing"

"overlord/lib/bufio"

"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
)
Expand All @@ -29,7 +27,7 @@ func TestPingerWrongResp(t *testing.T) {
conn := _createConn([]byte("-Error: iam more than 7 bytes\r\n"))
p := NewPinger(conn)
err := p.Ping()
assert.Equal(t, bufio.ErrBufferFull, errors.Cause(err))
assert.Equal(t, ErrBadPong, errors.Cause(err))

conn = _createConn([]byte("-Err\r\n"))
p = NewPinger(conn)
Expand Down

0 comments on commit 4288f5b

Please sign in to comment.