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:
Brian Brazil 2015-09-23 08:53:55 +01:00 committed by Fabian Reinartz
parent 99935fdc48
commit 1c5fbd568c

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)