mirror of https://github.com/status-im/consul.git
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:
parent
7dd2070ae5
commit
0190c4a081
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue