aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server_test.go
diff options
context:
space:
mode:
authorAndrey Petrov <andrey.petrov@shazow.net>2018-06-08 09:50:08 +0800
committerAndrey Petrov <andrey.petrov@shazow.net>2018-06-22 00:22:47 +0800
commit6209545083f656f2dccbe4561644a757ff6443b5 (patch)
tree5ce7677791bcce83e57f70836a3c5d6004bc036c /p2p/server_test.go
parent193a402cc08e69f8c6b92106e8e81104d260d26c (diff)
downloaddexon-6209545083f656f2dccbe4561644a757ff6443b5.tar.gz
dexon-6209545083f656f2dccbe4561644a757ff6443b5.tar.zst
dexon-6209545083f656f2dccbe4561644a757ff6443b5.zip
p2p: Wrap conn.flags ops with atomic.Load/Store
Diffstat (limited to 'p2p/server_test.go')
-rw-r--r--p2p/server_test.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/p2p/server_test.go b/p2p/server_test.go
index 65897e018..3f24a79ba 100644
--- a/p2p/server_test.go
+++ b/p2p/server_test.go
@@ -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")