diff --git a/agent/consul/stats_fetcher_test.go b/agent/consul/stats_fetcher_test.go index 516d08c5ea..e814647f87 100644 --- a/agent/consul/stats_fetcher_test.go +++ b/agent/consul/stats_fetcher_test.go @@ -92,12 +92,4 @@ func TestStatsFetcher(t *testing.T) { } } }() - - // Do a fetch with a canceled context and make sure we bail right away. - ctx, cancel := context.WithTimeout(context.Background(), time.Second) - cancel() - stats := s1.statsFetcher.Fetch(ctx, servers) - if len(stats) != 0 { - t.Fatalf("bad: %#v", stats) - } }