summaryrefslogtreecommitdiff
path: root/internal/eventloop_constructor_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-08 11:38:29 +0200
committerPaul Buetow <paul@buetow.org>2026-03-08 11:38:29 +0200
commit534d55c47fc29d1089cb5c2c9c4832461e762603 (patch)
tree5f9d0cabee00f10fc7200d880c160a67712c5cac /internal/eventloop_constructor_test.go
parentcc3b3cdc764edc5e5261f920384a098ea6968b77 (diff)
tests: replace eventloop sleep synchronization with deterministic signaling
Diffstat (limited to 'internal/eventloop_constructor_test.go')
-rw-r--r--internal/eventloop_constructor_test.go3
1 files changed, 3 insertions, 0 deletions
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)