Skip to content

Commit

Permalink
Fix golint errors in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Hao Sun <[email protected]>
  • Loading branch information
HaoSunUber committed Sep 8, 2023
1 parent ede5508 commit 19b1221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions async_producer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ func TestAsyncProducerMultipleRetriesWithConcurrentRequests(t *testing.T) {
}

func TestAsyncProducerBrokerRestart(t *testing.T) {
// Logger = log.New(os.Stdout, "[sarama] ", log.LstdFlags)

seedBroker := NewMockBroker(t, 1)
leader := NewMockBroker(t, 2)
Expand Down
2 changes: 1 addition & 1 deletion functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ mainLoop:
}
for _, broker := range brokers {
err := broker.Open(client.Config())
if err != nil && err != ErrAlreadyConnected {
if err != nil && !errors.Is(err, ErrAlreadyConnected) {
client.Close()
continue retryLoop
}
Expand Down

0 comments on commit 19b1221

Please sign in to comment.