From 9ab22bd8dc522e42a7031e2a692a570a1f48a645 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Thu, 3 Sep 2015 08:33:15 +0000 Subject: [PATCH] Wait longer for the goroutine to stop. --- probe/resolver_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe/resolver_test.go b/probe/resolver_test.go index b51746e2e..3f108b57c 100644 --- a/probe/resolver_test.go +++ b/probe/resolver_test.go @@ -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") } }