diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-10 22:34:17 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-10 22:34:17 +0200 |
| commit | 80d8993dca4cf7945c492406489fb9d966e2dc44 (patch) | |
| tree | 51bb8eda2a60c17cf04294370d095b6f86d0f035 /internal/event/pair_test.go | |
| parent | d1aeb4afa9afee8a0cce8827b4c2dd9f8c01fe5b (diff) | |
eventloop: bound pending enter and proc-fd caches (task 425)
Diffstat (limited to 'internal/event/pair_test.go')
| -rw-r--r-- | internal/event/pair_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
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() +} |
