diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-08 08:55:06 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-08 08:55:06 +0200 |
| commit | 9950c77981ce06be34e877a6729abb23a36789c6 (patch) | |
| tree | 778c4f32c27740f86810cb052146df97b20cea9e /internal/eventloop_test.go | |
| parent | dc20240d2eddacba8a690a75547cbd8f1d3df98e (diff) | |
task(ior): remove eventloop busy-wait polling (task 2b8f8f83)
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 { |
