Gets rid of flaky clause in stats fetcher unit test.

Given how the rutine is coded we can still get data so this wasn't
a reliable thing to check.
This commit is contained in:
James Phillips 2017-09-26 20:53:06 -07:00
parent 7dd2070ae5
commit 0190c4a081
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 0 additions and 8 deletions

View File

@ -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)
}
}