fix samara

This commit is contained in:
chrislu committed 2025-09-13 09:58:53 -07:00
1 parent 445d7343d7
commit ba48ea9c4c
2 files changed
+12 -18

No files matched your search

+3 -1
View File
@@ -1,6 +1,7 @@
package kafka
import (
"context"
"fmt"
"testing"
"time"
@@ -163,8 +164,9 @@ func TestSaramaConsumerGroup(t *testing.T) {
// Start consuming (this will test FindCoordinator, JoinGroup, SyncGroup workflow)
go func() {
ctx := context.Background()
for {
err := consumerGroup.Consume(nil, []string{topicName}, consumerHandler)
err := consumerGroup.Consume(ctx, []string{topicName}, consumerHandler)
if err != nil {
t.Logf("Consumer group error: %v", err)
return