Skip to content

Commit

Permalink
nsqd: go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed May 3, 2015
1 parent 76adaab commit cd1a2f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nsqd/protocol_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func sub(t *testing.T, conn io.ReadWriter, topicName string, channelName string)
}

func authCmd(t *testing.T, conn io.ReadWriter, authSecret string, expectSuccess string) {
auth := &nsq.Command{[]byte("AUTH"), nil, []byte(authSecret)}
auth, _ := nsq.Auth(authSecret)
_, err := auth.WriteTo(conn)
equal(t, err, nil)
if expectSuccess != "" {
Expand Down Expand Up @@ -1380,7 +1380,8 @@ func TestBadFin(t *testing.T) {
identify(t, conn, map[string]interface{}{}, frameTypeResponse)
sub(t, conn, "test_fin", "ch")

fin := &nsq.Command{[]byte("FIN"), [][]byte{[]byte("")}, nil}
fin := nsq.Finish(nsq.MessageID{})
fin.Params[0] = []byte("")
_, err = fin.WriteTo(conn)
equal(t, err, nil)

Expand Down

0 comments on commit cd1a2f1

Please sign in to comment.