Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-kad-dht
Commits
5c71aa9f
Commit
5c71aa9f
authored
Mar 20, 2020
by
Adin Schmahmann
Committed by
Steven Allen
Apr 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(test): increase timeout for notification tests since it's slow on Windows
parent
8715e2d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
notify_test.go
notify_test.go
+2
-2
No files found.
notify_test.go
View file @
5c71aa9f
...
...
@@ -67,7 +67,7 @@ func TestNotifieeMultipleConn(t *testing.T) {
d2
.
host
.
Close
()
// wait context will ensure that the RT cleanup completes
waitCtx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
2
*
time
.
Second
)
waitCtx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
5
*
time
.
Second
)
defer
cancel
()
require
.
NoError
(
t
,
tu
.
WaitFor
(
waitCtx
,
func
()
error
{
...
...
@@ -79,7 +79,7 @@ func TestNotifieeMultipleConn(t *testing.T) {
}
func
TestNotifieeFuzz
(
t
*
testing
.
T
)
{
ctx
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
time
.
Second
*
2
)
ctx
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
time
.
Second
*
5
)
defer
cancel
()
d1
:=
setupDHT
(
ctx
,
t
,
false
,
RoutingTableCheckInterval
(
50
*
time
.
Millisecond
))
...
...
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