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
1c3aa8d9
Commit
1c3aa8d9
authored
Feb 05, 2019
by
Ferenc Szabo
Committed by
Anton Evangelatov
Feb 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swarm/storage: fix test timeout with -race by increasing mget timeout
parent
f413a3db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
discovery_test.go
swarm/network/simulations/discovery/discovery_test.go
+0
-3
common_test.go
swarm/storage/common_test.go
+3
-2
No files found.
swarm/network/simulations/discovery/discovery_test.go
View file @
1c3aa8d9
...
...
@@ -362,9 +362,6 @@ func discoveryPersistenceSimulation(nodes, conns int, adapter adapters.NodeAdapt
return
fmt
.
Errorf
(
"error getting node string %s"
,
err
)
}
log
.
Info
(
nodeStr
)
for
_
,
a
:=
range
addrs
{
log
.
Info
(
common
.
Bytes2Hex
(
a
))
}
if
!
healthy
.
ConnectNN
||
healthy
.
CountKnowNN
==
0
{
isHealthy
=
false
break
...
...
swarm/storage/common_test.go
View file @
1c3aa8d9
...
...
@@ -142,10 +142,11 @@ func mget(store ChunkStore, hs []Address, f func(h Address, chunk Chunk) error)
close
(
errc
)
}()
var
err
error
timeout
:=
10
*
time
.
Second
select
{
case
err
=
<-
errc
:
case
<-
time
.
NewTimer
(
5
*
time
.
Second
)
.
C
:
err
=
fmt
.
Errorf
(
"timed out after
5 seconds"
)
case
<-
time
.
NewTimer
(
timeout
)
.
C
:
err
=
fmt
.
Errorf
(
"timed out after
%v"
,
timeout
)
}
return
err
}
...
...
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