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
Commits
565f9b88
Commit
565f9b88
authored
Oct 19, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
leaking goroutine ++ in travis
for some reason travis has more goroutines running by def.
parent
3d2ba374
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
net/conn/conn_test.go
net/conn/conn_test.go
+1
-1
net/conn/secure_conn_test.go
net/conn/secure_conn_test.go
+1
-1
No files found.
net/conn/conn_test.go
View file @
565f9b88
...
...
@@ -125,7 +125,7 @@ func TestCloseLeak(t *testing.T) {
// done!
<-
time
.
After
(
time
.
Microsecond
*
100
)
if
runtime
.
NumGoroutine
()
>
1
0
{
if
runtime
.
NumGoroutine
()
>
2
0
{
// panic("uncomment me to debug")
t
.
Fatal
(
"leaking goroutines:"
,
runtime
.
NumGoroutine
())
}
...
...
net/conn/secure_conn_test.go
View file @
565f9b88
...
...
@@ -150,7 +150,7 @@ func TestSecureCloseLeak(t *testing.T) {
// done!
<-
time
.
After
(
time
.
Microsecond
*
100
)
if
runtime
.
NumGoroutine
()
>
1
0
{
if
runtime
.
NumGoroutine
()
>
2
0
{
// panic("uncomment me to debug")
t
.
Fatal
(
"leaking goroutines:"
,
runtime
.
NumGoroutine
())
}
...
...
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