Merge pull request #158 from ardan-bkennedy/patch-1
Update go_collector_test.go
This commit is contained in:
commit
dd33f764bd
|
@ -50,6 +50,10 @@ func TestGoCollector(t *testing.T) {
|
||||||
t.Errorf("want 1 new goroutine, got %d", diff)
|
t.Errorf("want 1 new goroutine, got %d", diff)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GoCollector performs two sends per call.
|
||||||
|
// On line 27 we need to revceive the second send
|
||||||
|
// to shutdown cleanly.
|
||||||
|
<-ch
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
case <-time.After(1 * time.Second):
|
case <-time.After(1 * time.Second):
|
||||||
|
|
Loading…
Reference in New Issue