@@ -101,7 +101,6 @@ func testOnePublisherOneMessageOneConsumer(t *testing.T, ts TestServer) {
101
101
if err := <- prodErrs ; err != nil {
102
102
t .Errorf ("unexpected error from consume : %s" , err )
103
103
}
104
-
105
104
}
106
105
107
106
func testOnePublisherOneConsumerConsumeWithoutAcking (t * testing.T , ts TestServer ) {
@@ -214,7 +213,6 @@ func testOnePublisherOneMessageTwoConsumers(t *testing.T, ts TestServer) {
214
213
if err := <- cons1Errs ; err != nil {
215
214
t .Errorf ("unexpected error from consume : %s" , err )
216
215
}
217
-
218
216
}
219
217
220
218
func testPublisherShouldNotBlock (t * testing.T , ts TestServer ) {
@@ -368,7 +366,7 @@ func testConsumeWithoutAck(t *testing.T, ts TestServer) {
368
366
case <- cons1Msgs :
369
367
case err := <- cons1Errs :
370
368
if err != nil {
371
- t .Error (err ) //TODO: prolly not.
369
+ t .Error (err ) // TODO: prolly not.
372
370
}
373
371
}
374
372
@@ -391,7 +389,6 @@ func testConsumeWithoutAck(t *testing.T, ts TestServer) {
391
389
if err := <- cons2Errs ; err != nil {
392
390
t .Errorf ("unexpected error from consume : %s" , err )
393
391
}
394
-
395
392
}
396
393
397
394
func testProduceStatusOk (t * testing.T , ts TestServer ) {
@@ -471,7 +468,6 @@ func testPublishMultipleMessagesOneConsumer(t *testing.T, ts TestServer) {
471
468
if err := <- prodErrs ; err != nil {
472
469
t .Errorf ("unexpected error from consume : %s" , err )
473
470
}
474
-
475
471
}
476
472
477
473
func testOnePublisherOneConsumerConsumeWithoutAckingDiscardedPayload (t * testing.T , ts TestServer ) {
@@ -588,7 +584,6 @@ func produceAndCheckAck(ctx context.Context, t *testing.T, prodMsgs chan<- subst
588
584
}
589
585
590
586
func consumeAndAck (ctx context.Context , t * testing.T , consMsgs <- chan substrate.Message , consAcks chan <- substrate.Message ) string {
591
-
592
587
var msg substrate.Message
593
588
594
589
// receive it
@@ -615,7 +610,6 @@ func consumeAndAck(ctx context.Context, t *testing.T, consMsgs <-chan substrate.
615
610
}
616
611
617
612
func consumeAndAckDiscard (ctx context.Context , t * testing.T , consMsgs <- chan substrate.Message , consAcks chan <- substrate.Message ) string {
618
-
619
613
var msg substrate.Message
620
614
621
615
// receive it
0 commit comments