good morning!!!!

Skip to content
Snippets Groups Projects
Commit 399aa710 authored by Andrey Petrov's avatar Andrey Petrov
Browse files

p2p: Attempt to race check peer.Inbound() in TestServerDial

parent 699794d8
No related branches found
No related tags found
Loading
......@@ -181,6 +181,9 @@ func TestServerDial(t *testing.T) {
if peer := srv.Peers()[0]; !peer.Info().Network.Trusted {
t.Errorf("peer is not trusted after AddTrustedPeer: %v", peer)
}
if peer := srv.Peers()[0]; peer.Inbound() {
t.Errorf("peer is marked inbound")
}
srv.RemoveTrustedPeer(node)
if peer := srv.Peers()[0]; peer.Info().Network.Trusted {
t.Errorf("peer is trusted after RemoveTrustedPeer: %v", peer)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment