p2p: Wrap conn.flags ops with atomic.Load/Store
This commit is contained in:
@ -189,12 +189,10 @@ func TestServerDial(t *testing.T) {
|
||||
}
|
||||
done <- true
|
||||
}()
|
||||
|
||||
// Trigger potential race conditions
|
||||
peer = srv.Peers()[0]
|
||||
_ = peer.Inbound()
|
||||
_ = peer.Info()
|
||||
|
||||
<-done
|
||||
case <-time.After(1 * time.Second):
|
||||
t.Error("server did not launch peer within one second")
|
||||
|
Reference in New Issue
Block a user