diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-06 15:50:50 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-06 15:50:50 +0200 |
| commit | 58825fb53b900aedd3b161ff0e3b769a2cf188ab (patch) | |
| tree | 2b805fabfba124cb794006f1b4b16ed05f5e7da0 /internal/eventloop_test.go | |
| parent | 99b02bf8c389a793df5d5986db05eed7e459f7b1 (diff) | |
fix: return errors for invalid event filters (task 382)
Diffstat (limited to 'internal/eventloop_test.go')
| -rw-r--r-- | internal/eventloop_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/eventloop_test.go b/internal/eventloop_test.go index 4ae8597..d1bcc16 100644 --- a/internal/eventloop_test.go +++ b/internal/eventloop_test.go @@ -96,7 +96,7 @@ func TestEventloop(t *testing.T) { inCh := make(chan []byte) outCh := make(chan *event.Pair) - el := newEventLoop(eventLoopConfig{}) + el := mustNewEventLoop(t, eventLoopConfig{}) el.printCb = func(ev *event.Pair) { outCh <- ev } go el.run(ctx, inCh) @@ -142,7 +142,7 @@ func TestEventloop(t *testing.T) { } func TestHandleFdExitCloseClearsProcFdCache(t *testing.T) { - el := newEventLoop(eventLoopConfig{}) + el := mustNewEventLoop(t, eventLoopConfig{}) pid := uint32(1001) fd := int32(55) @@ -170,7 +170,7 @@ func TestHandleFdExitCloseClearsProcFdCache(t *testing.T) { } func TestHandleFdExitCloseRangeClearsProcFdCacheRange(t *testing.T) { - el := newEventLoop(eventLoopConfig{}) + el := mustNewEventLoop(t, eventLoopConfig{}) pid := uint32(2002) el.setProcFdCache(10, pid, file.NewFd(10, "keep", syscall.O_RDONLY)) |
