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
dms3
go-dms3-routing
Commits
d8426038
Commit
d8426038
authored
10 years ago
by
Jeromy
Committed by
Juan Batiz-Benet
10 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make test fail instead of hang
parent
09c0deff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
dht/dht_test.go
dht/dht_test.go
+11
-2
No files found.
dht/dht_test.go
View file @
d8426038
...
...
@@ -431,6 +431,15 @@ func TestConnectCollision(t *testing.T) {
done
<-
struct
{}{}
}()
<-
done
<-
done
timeout
:=
time
.
After
(
time
.
Second
*
5
)
select
{
case
<-
done
:
case
<-
timeout
:
t
.
Fatal
(
"Timeout received!"
)
}
select
{
case
<-
done
:
case
<-
timeout
:
t
.
Fatal
(
"Timeout received!"
)
}
}
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