From 8d627e21a138d796b4c2161816f00e4e8227c070 Mon Sep 17 00:00:00 2001 From: Chun-Hung Tseng Date: Wed, 25 Sep 2024 14:52:13 +0200 Subject: [PATCH] Fix test condition Signed-off-by: Chun-Hung Tseng --- pkg/proxy/server_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/proxy/server_test.go b/pkg/proxy/server_test.go index 8f8466ddad5..bd59d98a514 100644 --- a/pkg/proxy/server_test.go +++ b/pkg/proxy/server_test.go @@ -135,7 +135,7 @@ func destroy(t *testing.T, writec chan []byte, donec chan struct{}, proxyServer select { case <-proxyServer.Done(): case err := <-proxyServer.Error(): - if !strings.HasPrefix(err.Error(), "accept ") && + if !strings.HasPrefix(err.Error(), "accept ") || !strings.HasSuffix(err.Error(), "use of closed network connection") { t.Fatal(err) }