From 80d8993dca4cf7945c492406489fb9d966e2dc44 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 10 Mar 2026 22:34:17 +0200 Subject: eventloop: bound pending enter and proc-fd caches (task 425) --- internal/event/pair_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/event/pair_test.go') diff --git a/internal/event/pair_test.go b/internal/event/pair_test.go index 43e9945..eb033dc 100644 --- a/internal/event/pair_test.go +++ b/internal/event/pair_test.go @@ -55,3 +55,13 @@ func TestPairCalculateDurationsWithPreviousExit(t *testing.T) { t.Fatalf("DurationToPrev = %d, want 500", pair.DurationToPrev) } } + +func TestPairRecycleHandlesMissingExitEvent(t *testing.T) { + pair := NewPair(&types.OpenEvent{ + Time: 1000, + Pid: 1, + Tid: 2, + }) + + pair.Recycle() +} -- cgit v1.2.3