@@ -282,7 +282,7 @@ func TestPullConsumerFetch(t *testing.T) {
282282 }
283283
284284 if msgsNum != len (testMsgs ) {
285- t .Fatalf ("Expected 5 messages, got: %d" , msgsNum )
285+ t .Fatalf ("Expected %d messages, got: %d" , len ( testMsgs ) , msgsNum )
286286 }
287287 })
288288
@@ -388,7 +388,7 @@ func TestPullConsumerFetch(t *testing.T) {
388388 i ++
389389 }
390390 if i != len (testMsgs ) {
391- t .Fatalf ("Expected 5 messages; got: %d" , i )
391+ t .Fatalf ("Expected %d messages; got: %d" , len ( testMsgs ) , i )
392392 }
393393 if msgs .Error () != nil {
394394 t .Fatalf ("Unexpected error during fetch: %v" , msgs .Error ())
@@ -679,7 +679,7 @@ func TestPullConsumerFetchRace(t *testing.T) {
679679 i ++
680680 }
681681 if i != 3 {
682- t .Fatalf ("Invalid number of messages received; want: %d; got: %d" , 5 , i )
682+ t .Fatalf ("Invalid number of messages received; want: %d; got: %d" , 3 , i )
683683 }
684684 select {
685685 case err := <- errCh :
@@ -796,7 +796,7 @@ func TestPullConsumerFetchBytes(t *testing.T) {
796796 i ++
797797 }
798798 if i != 4 {
799- t .Fatalf ("Expected 5 messages; got: %d" , i )
799+ t .Fatalf ("Expected 4 messages; got: %d" , i )
800800 }
801801 if msgs .Error () != nil {
802802 t .Fatalf ("Unexpected error during fetch: %v" , msgs .Error ())
@@ -840,7 +840,7 @@ func TestPullConsumerFetchBytes(t *testing.T) {
840840 i ++
841841 }
842842 if i != 0 {
843- t .Fatalf ("Expected 5 messages; got: %d" , i )
843+ t .Fatalf ("Expected 0 messages; got: %d" , i )
844844 }
845845 if msgs .Error () != nil {
846846 t .Fatalf ("Unexpected error during fetch: %v" , msgs .Error ())
0 commit comments