bsc/p2p/testing
Ferenc Szabo f82185a4a1 p2p/protocols: fix data race in TestProtocolHook (#19242)
dummyHook's fields were concurrently written by nodes and read by
the test. The simplest solution is to protect all fields with a mutex.

Enable: TestMultiplePeersDropSelf, TestMultiplePeersDropOther as they
seemingly accidentally stayed disabled during a refactor/rewrite
since 1836366ac19e30f157570e61342fae53bc6c8a57.

resolves ethersphere/go-ethereum#1286
2019-03-08 17:30:16 +01:00
..
peerpool.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
protocolsession.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
protocoltester.go p2p/protocols: fix data race in TestProtocolHook (#19242) 2019-03-08 17:30:16 +01:00