aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2017-12-13 10:15:27 +0800
committerGitHub <noreply@github.com>2017-12-13 10:15:27 +0800
commit3654aeaa4f87452ac5bc801a18808189595e2ef8 (patch)
tree7df8b0b7d986909cc9da425714d229183774dd98
parentf258a21a63347a43a80d7834beb39f276a328ba6 (diff)
downloaddexon-3654aeaa4f87452ac5bc801a18808189595e2ef8.tar.gz
dexon-3654aeaa4f87452ac5bc801a18808189595e2ef8.tar.zst
dexon-3654aeaa4f87452ac5bc801a18808189595e2ef8.zip
p2p/simulations: fix gosimple nit (#15661)
-rw-r--r--p2p/simulations/mocker_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/simulations/mocker_test.go b/p2p/simulations/mocker_test.go
index 6b866fb74..de8ec0b33 100644
--- a/p2p/simulations/mocker_test.go
+++ b/p2p/simulations/mocker_test.go
@@ -91,7 +91,7 @@ func TestMocker(t *testing.T) {
select {
case event := <-events:
//if the event is a node Up event only
- if event.Node != nil && event.Node.Up == true {
+ if event.Node != nil && event.Node.Up {
//add the correspondent node ID to the map
nodemap[event.Node.Config.ID] = true
//this means all nodes got a nodeUp event, so we can continue the test