diff options
Diffstat (limited to 'internal/eventloop_test.go')
| -rw-r--r-- | internal/eventloop_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/eventloop_test.go b/internal/eventloop_test.go index 7fcd438..32dddd4 100644 --- a/internal/eventloop_test.go +++ b/internal/eventloop_test.go @@ -104,8 +104,9 @@ func TestEventloop(t *testing.T) { for _, raw := range td.rawTracepoints { t.Log("Sending raw tracepoint", raw, "simulating BPF sending this") inCh <- raw - // Small delay to simulate real BPF event timing - time.Sleep(time.Microsecond) + // Keep synthetic feed pace close to real arrival and avoid + // stateful assertion races between adjacent events. + time.Sleep(100 * time.Microsecond) } }() for _, validate := range td.validates { |
