Skip to content

Commit

Permalink
Merge pull request #2287 from Shopify/dnwe/fix
Browse files Browse the repository at this point in the history
fix(test): permit ECONNRESET in TestInitProducerID
  • Loading branch information
dnwe authored Jul 20, 2022
2 parents 41f02fc + 2d2196d commit 1dd58a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ func TestInitProducerIDConnectionRefused(t *testing.T) {
t.Fatalf("unexpected error: %v", err)
}

if !errors.Is(err, io.EOF) {
if !errors.Is(err, io.EOF) && !errors.Is(err, syscall.ECONNRESET) {
t.Fatalf("unexpected error: %v", err)
}

Expand Down

0 comments on commit 1dd58a4

Please sign in to comment.