Skip to content

Commit dc189f2

Browse files
committed
fix test
1 parent ffee03d commit dc189f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

addoffsetstotxn_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package kafka
22

33
import (
44
"context"
5+
"errors"
56
"log"
67
"net"
78
"os"
@@ -95,7 +96,7 @@ func TestClientAddOffsetsToTxn(t *testing.T) {
9596
}
9697

9798
// we should retry if the group is still loading
98-
if ipResp.Error != GroupLoadInProgress {
99+
if ipResp.Error != nil && !errors.Is(ipResp.Error, GroupLoadInProgress) {
99100
t.Fatal(ipResp.Error)
100101
}
101102

0 commit comments

Comments
 (0)