mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
retrieval: Reduce flakiness of TestTargetManagerChan
This will increase test time by a few hundred ms, this is the 2nd most common cause of flakiness.
This commit is contained in:
parent
8af1d7a6d2
commit
4bc39dc60e
|
@ -174,7 +174,7 @@ func TestTargetManagerChan(t *testing.T) {
|
|||
for i, step := range sequence {
|
||||
prov1.update <- step.tgroup
|
||||
|
||||
<-time.After(1 * time.Millisecond)
|
||||
time.Sleep(20 * time.Millisecond)
|
||||
|
||||
if len(targetManager.targets) != len(step.expected) {
|
||||
t.Fatalf("step %d: sources mismatch %v, %v", i, targetManager.targets, step.expected)
|
||||
|
|
Loading…
Reference in a new issue