diff options
author | Andrey Petrov <andrey.petrov@shazow.net> | 2018-06-08 09:50:08 +0800 |
---|---|---|
committer | Andrey Petrov <andrey.petrov@shazow.net> | 2018-06-22 00:22:47 +0800 |
commit | 6209545083f656f2dccbe4561644a757ff6443b5 (patch) | |
tree | 5ce7677791bcce83e57f70836a3c5d6004bc036c /p2p/server_test.go | |
parent | 193a402cc08e69f8c6b92106e8e81104d260d26c (diff) | |
download | dexon-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.go | 2 |
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") |