Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
2f001009
Commit
2f001009
authored
6 years ago
by
Erin Swenson-Healey
Browse files
Options
Download
Email Patches
Plain Diff
loosen tolerance in latency test
parent
bb9d55ac
master
2018-Q4-OKR
feat/protobuf
fix/473
fix/no-custom-field
fix/reset-ping-stream
fix/revert-correct-external-addr
gx/update-nza0mn
multistream-ping
punching
v6.0.23
v6.0.22
v6.0.21
v6.0.20
v6.0.19
v6.0.18
v6.0.17
v6.0.16
v6.0.15
v6.0.14
v6.0.13
v6.0.12
v6.0.11
v6.0.10
v6.0.9
v6.0.8
v6.0.7
v6.0.6
v6.0.5
v6.0.4
v6.0.3
v6.0.2
v6.0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
p2p/net/mock/mock_test.go
+3
-2
p2p/net/mock/mock_test.go
with
3 additions
and
2 deletions
+3
-2
p2p/net/mock/mock_test.go
View file @
2f001009
...
...
@@ -631,7 +631,8 @@ func TestStreamsWithLatency(t *testing.T) {
wg
.
Wait
()
delta
:=
time
.
Since
(
checkpoint
)
if
!
within
(
delta
,
latency
,
time
.
Millisecond
*
50
)
{
t
.
Fatalf
(
"Expected write to take ~%s, but took %s"
,
latency
.
String
(),
delta
.
String
())
tolerance
:=
time
.
Millisecond
*
100
if
!
within
(
delta
,
latency
,
tolerance
)
{
t
.
Fatalf
(
"Expected write to take ~%s (+/- %s), but took %s"
,
latency
.
String
(),
tolerance
.
String
(),
delta
.
String
())
}
}
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
Menu
Projects
Groups
Snippets
Help