From 58825fb53b900aedd3b161ff0e3b769a2cf188ab Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 6 Mar 2026 15:50:50 +0200 Subject: fix: return errors for invalid event filters (task 382) --- internal/eventloop_error_handling_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/eventloop_error_handling_test.go') diff --git a/internal/eventloop_error_handling_test.go b/internal/eventloop_error_handling_test.go index 12f9b2f..8361dea 100644 --- a/internal/eventloop_error_handling_test.go +++ b/internal/eventloop_error_handling_test.go @@ -8,7 +8,7 @@ import ( ) func TestTracepointExitedMalformedOpenExitDoesNotPanicAndNotifies(t *testing.T) { - el := newEventLoop(eventLoopConfig{}) + el := mustNewEventLoop(t, eventLoopConfig{}) warnings := make(chan string, 1) el.warningCb = func(message string) { warnings <- message } @@ -48,7 +48,7 @@ func TestTracepointExitedMalformedOpenExitDoesNotPanicAndNotifies(t *testing.T) } func TestTracepointExitedMalformedOpenByHandleAtExitDoesNotPanicAndNotifies(t *testing.T) { - el := newEventLoop(eventLoopConfig{}) + el := mustNewEventLoop(t, eventLoopConfig{}) warnings := make(chan string, 1) el.warningCb = func(message string) { warnings <- message } @@ -84,7 +84,7 @@ func TestTracepointExitedMalformedOpenByHandleAtExitDoesNotPanicAndNotifies(t *t } func TestProcessRawEventUnknownTypeDoesNotPanicAndNotifies(t *testing.T) { - el := newEventLoop(eventLoopConfig{}) + el := mustNewEventLoop(t, eventLoopConfig{}) warnings := make(chan string, 1) el.warningCb = func(message string) { warnings <- message } -- cgit v1.2.3