Merge pull request #1110 from prometheus/flaky-tests

retrieval: Reduce flakiness of TestTargetManagerChan
This commit is contained in:
Brian Brazil 2015-09-23 09:04:22 +01:00
commit c6b88bc3d3
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ func TestTargetManagerChan(t *testing.T) {
for i, step := range sequence { for i, step := range sequence {
prov1.update <- step.tgroup prov1.update <- step.tgroup
<-time.After(1 * time.Millisecond) time.Sleep(20 * time.Millisecond)
if len(targetManager.targets) != len(step.expected) { if len(targetManager.targets) != len(step.expected) {
t.Fatalf("step %d: sources mismatch %v, %v", i, targetManager.targets, step.expected) t.Fatalf("step %d: sources mismatch %v, %v", i, targetManager.targets, step.expected)