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)
|
p2 = newLocalPeer(t, s)
|
||||||
)
|
)
|
||||||
s.id = 1
|
s.id = 1
|
||||||
finished := make(chan struct{})
|
startWithCleanup(t, s)
|
||||||
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
|
|
||||||
})
|
|
||||||
|
|
||||||
na, _ := net.ResolveTCPAddr("tcp", "0.0.0.0:3000")
|
na, _ := net.ResolveTCPAddr("tcp", "0.0.0.0:3000")
|
||||||
p.netaddr = *na
|
p.netaddr = *na
|
||||||
|
|
Loading…
Reference in a new issue