Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
3654aeaa
Unverified
Commit
3654aeaa
authored
Dec 13, 2017
by
Felix Lange
Committed by
GitHub
Dec 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p2p/simulations: fix gosimple nit (#15661)
parent
f258a21a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mocker_test.go
p2p/simulations/mocker_test.go
+1
-1
No files found.
p2p/simulations/mocker_test.go
View file @
3654aeaa
...
@@ -91,7 +91,7 @@ func TestMocker(t *testing.T) {
...
@@ -91,7 +91,7 @@ func TestMocker(t *testing.T) {
select
{
select
{
case
event
:=
<-
events
:
case
event
:=
<-
events
:
//if the event is a node Up event only
//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
//add the correspondent node ID to the map
nodemap
[
event
.
Node
.
Config
.
ID
]
=
true
nodemap
[
event
.
Node
.
Config
.
ID
]
=
true
//this means all nodes got a nodeUp event, so we can continue the test
//this means all nodes got a nodeUp event, so we can continue the test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment