From be473571db3818d571fd663a976a870731d15be7 Mon Sep 17 00:00:00 2001 From: zbilun Date: Thu, 12 Dec 2024 14:14:43 -0800 Subject: [PATCH] fix channel close issue --- interop/test_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interop/test_utils.go b/interop/test_utils.go index 16f8634dd5d4..91e53c4b1b8f 100644 --- a/interop/test_utils.go +++ b/interop/test_utils.go @@ -922,7 +922,7 @@ func DoSoakTest( if totalFailures > maxFailures { fmt.Fprintf(os.Stderr, "Soak test total failures: %d exceeded max failures threshold: %d\n", totalFailures, maxFailures) } - closeChannel(sharedChannel) + defer closeChannel(sharedChannel) } type testServer struct {