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
96c7c18b
Commit
96c7c18b
authored
6 years ago
by
Janoš Guljaš
Committed by
Viktor Trón
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swarm/network: fix data race in TestNetworkID test (#18460)
parent
d37f9876
master
v1.10.12
v1.10.12-modified
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
networkid_test.go
swarm/network/networkid_test.go
+4
-5
No files found.
swarm/network/networkid_test.go
View file @
96c7c18b
...
...
@@ -76,13 +76,12 @@ func TestNetworkID(t *testing.T) {
if
err
!=
nil
{
t
.
Fatalf
(
"Error setting up network: %v"
,
err
)
}
defer
func
()
{
//shutdown the snapshot network
log
.
Trace
(
"Shutting down network"
)
net
.
Shutdown
()
}()
//let's sleep to ensure all nodes are connected
time
.
Sleep
(
1
*
time
.
Second
)
// shutdown the the network to avoid race conditions
// on accessing kademlias global map while network nodes
// are accepting messages
net
.
Shutdown
()
//for each group sharing the same network ID...
for
_
,
netIDGroup
:=
range
nodeMap
{
log
.
Trace
(
"netIDGroup size"
,
"size"
,
len
(
netIDGroup
))
...
...
This diff is collapsed.
Click to expand it.
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