mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
inlet/flow: increase a bit how much to wait for flows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user