From 534d55c47fc29d1089cb5c2c9c4832461e762603 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 8 Mar 2026 11:38:29 +0200 Subject: tests: replace eventloop sleep synchronization with deterministic signaling --- internal/eventloop_constructor_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/eventloop_constructor_test.go') diff --git a/internal/eventloop_constructor_test.go b/internal/eventloop_constructor_test.go index 52ca570..6636838 100644 --- a/internal/eventloop_constructor_test.go +++ b/internal/eventloop_constructor_test.go @@ -9,6 +9,9 @@ import ( func mustNewEventLoop(tb testing.TB, cfg eventLoopConfig) *eventLoop { tb.Helper() + if _, isBenchmark := tb.(*testing.B); !isBenchmark { + cfg.synchronousRawProcessing = true + } el, err := newEventLoop(cfg) if err != nil { tb.Fatalf("newEventLoop() error = %v", err) -- cgit v1.2.3