Merge pull request #3364 from nspcc-dev/fuzz
network: fix logging data race in the package
This commit is contained in:
commit
b028c772f2
1 changed files with 1 additions and 10 deletions
|
@ -335,16 +335,7 @@ func TestServerNotSendsVerack(t *testing.T) {
|
|||
p2 = newLocalPeer(t, s)
|
||||
)
|
||||
s.id = 1
|
||||
finished := make(chan struct{})
|
||||
go func() {
|
||||
go s.run()
|
||||
close(finished)
|
||||
}()
|
||||
t.Cleanup(func() {
|
||||
// close via quit as server was started via `run()`, not `Start()`
|
||||
close(s.quit)
|
||||
<-finished
|
||||
})
|
||||
startWithCleanup(t, s)
|
||||
|
||||
na, _ := net.ResolveTCPAddr("tcp", "0.0.0.0:3000")
|
||||
p.netaddr = *na
|
||||
|
|
Loading…
Reference in a new issue