Skip to content

Commit

Permalink
fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinburkesegment committed Mar 8, 2024
1 parent fa9f930 commit 2d32f68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,14 @@ func TestDrainAndRequeueOnStopWithMessageTimeout(t *testing.T) {
for msgNum < 5 {
select {
case msg := <-consumer.Messages():
fmt.Printf("start handling message %s\n", string(msg.Body))
fmt.Printf("consumer 1: handling message %s\n", string(msg.Body))
msgNum++
case <-deadline.C:
t.Error("timeout")
return
}
}
fmt.Printf("Allow some time for the nsqd to timeout received messages")
fmt.Printf("Allow some time for the nsqd to timeout received messages\n")
// Allow some time for the nsqd to timeout received messages and send 10+ more messages
// to client to deadlock runConn
time.Sleep(6 * time.Second)
Expand Down Expand Up @@ -322,7 +322,7 @@ func TestDrainAndRequeueOnStopWithMessageTimeout(t *testing.T) {
for msgNum < numberMessages {
select {
case msg := <-consumer2.Messages():
fmt.Printf("handling message %s\n", string(msg.Body))
fmt.Printf("consumer 2: handling message %s\n", string(msg.Body))
msg.Finish()
msgNum++
delete(sentMessages, string(msg.Body))
Expand Down

0 comments on commit 2d32f68

Please sign in to comment.