From 2d2196dbe6ddd6df5127b70fa4b7db3b61006cbb Mon Sep 17 00:00:00 2001 From: Dominic Evans Date: Thu, 21 Jul 2022 00:25:00 +0100 Subject: [PATCH] fix(test): permit ECONNRESET in TestInitProducerID --- client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_test.go b/client_test.go index b659719c9..79f1e85dd 100644 --- a/client_test.go +++ b/client_test.go @@ -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) }