Skip to content

Commit

Permalink
test: fix mocked response in the TestNewRESP2Pipe case
Browse files Browse the repository at this point in the history
  • Loading branch information
rueian committed Dec 4, 2022
1 parent e0b466d commit 0e02e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func TestNewRESP2Pipe(t *testing.T) {
mock.Expect("HELLO", "3").
ReplyError("ERR unknown command `HELLO`")
mock.Expect("CLIENT", "TRACKING", "ON", "OPTIN").
ReplyError("ERR unknown subcommand or wrong number of arguments for 'TRACKING'")
ReplyError("ERR unknown subcommand or wrong number of arguments for 'TRACKING'. Try CLIENT HELP")
mock.Expect("QUIT").ReplyString("OK")
}()
if _, err := newPipe(func() (net.Conn, error) { return n1, nil }, &ClientOption{}); !errors.Is(err, ErrNoCache) {
Expand Down

0 comments on commit 0e02e52

Please sign in to comment.