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
7dc906cb59
commit
330ce87851
|
@ -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