inlet/flow: increase a bit how much to wait for flows

This commit is contained in:
Vincent Bernat
2022-12-06 08:11:22 +01:00
parent c1e32c0245
commit f3f7e0fdc8

View File

@@ -61,7 +61,7 @@ func TestFlow(t *testing.T) {
for i := 0; i < 1000; i++ {
select {
case <-c.Flows():
case <-time.After(30 * time.Millisecond):
case <-time.After(100 * time.Millisecond):
t.Fatalf("no flow received")
}
}
@@ -116,7 +116,7 @@ func TestFlow(t *testing.T) {
}
t.Fatalf("Sampling rate is %d, expected %d", flow.SamplingRate, expectedRate)
}
case <-time.After(30 * time.Millisecond):
case <-time.After(100 * time.Millisecond):
t.Fatalf("no flow received")
}
break