Wait longer for the goroutine to stop.

This commit is contained in:
Tom Wilkie
2015-09-03 08:33:15 +00:00
parent fa05e9bb9e
commit 9ab22bd8dc

View File

@@ -85,7 +85,7 @@ func TestResolver(t *testing.T) {
go func() { r.Stop(); close(done) }()
select {
case <-done:
case <-time.After(time.Millisecond):
case <-time.After(100*time.Millisecond):
t.Errorf("didn't Stop in time")
}
}