From d6efed031af2cd1cdfdc2022aaa2ee1f28741e29 Mon Sep 17 00:00:00 2001 From: Ekaterina Pavlova Date: Tue, 19 Mar 2024 19:21:28 +0300 Subject: [PATCH] network: fix logging data race in the package Nested goroutines could cause logging race. Close #3316 Signed-off-by: Ekaterina Pavlova --- pkg/network/server_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/network/server_test.go b/pkg/network/server_test.go index c1b5d96dc4..78f0d35ad3 100644 --- a/pkg/network/server_test.go +++ b/pkg/network/server_test.go @@ -337,7 +337,7 @@ func TestServerNotSendsVerack(t *testing.T) { s.id = 1 finished := make(chan struct{}) go func() { - go s.run() + s.run() close(finished) }() t.Cleanup(func() {