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() {