summaryrefslogtreecommitdiff
path: root/integrationtests/sampling_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-20 14:13:21 +0300
committerPaul Buetow <paul@buetow.org>2026-05-20 14:13:21 +0300
commit13d2c3ec8deb759308a8f0a28374470ca9bb1e9d (patch)
tree20f1d9ac5540d63a415223c7c5b4bb6f1e8ecec8 /integrationtests/sampling_test.go
parent9310b54d439d4a1a8d4d337987aa63884df0af76 (diff)
fix(task-17): prevent aggregate double-count and flush on shutdown
Diffstat (limited to 'integrationtests/sampling_test.go')
-rw-r--r--integrationtests/sampling_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/integrationtests/sampling_test.go b/integrationtests/sampling_test.go
index 7bfbc75..34c1fdb 100644
--- a/integrationtests/sampling_test.go
+++ b/integrationtests/sampling_test.go
@@ -20,4 +20,11 @@ func TestPerSyscallSamplingAggregateOnlySuppressesRingbufEvents(t *testing.T) {
Comm: "ioworkload",
},
})
+ AssertEventsPresent(t, result, []ExpectedEvent{
+ {
+ Tracepoint: "enter_close",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
}