Skip to content

Commit

Permalink
network: fix logging data race in the package
Browse files Browse the repository at this point in the history
Nested goroutines could cause logging race.

Close #3316

Signed-off-by: Ekaterina Pavlova <[email protected]>
  • Loading branch information
AliceInHunterland committed Mar 19, 2024
1 parent 7e12cc1 commit d6efed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/network/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d6efed0

Please sign in to comment.