aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/simulations/mocker_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'p2p/simulations/mocker_test.go')
-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