From ad4d7fca20d80f71ccabef3281e3f80081f4db62 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 26 Feb 2026 08:50:12 +0200 Subject: Add byte assertions for read/write integration scenarios --- integrationtests/helpers_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'integrationtests/helpers_test.go') diff --git a/integrationtests/helpers_test.go b/integrationtests/helpers_test.go index 5f60f0f..feb7a55 100644 --- a/integrationtests/helpers_test.go +++ b/integrationtests/helpers_test.go @@ -48,6 +48,11 @@ func writeScript(t *testing.T, dir, name, content string) string { } func runScenario(t *testing.T, scenario string, expected []ExpectedEvent) { + t.Helper() + runScenarioResult(t, scenario, expected) +} + +func runScenarioResult(t *testing.T, scenario string, expected []ExpectedEvent) (TestResult, int) { t.Helper() enableParallelIfRequested(t) h := newTestHarness(t) @@ -59,6 +64,7 @@ func runScenario(t *testing.T, scenario string, expected []ExpectedEvent) { AssertNoUnexpectedPID(t, result, pid) AssertNoUnexpectedComm(t, result, "ioworkload") AssertEventsPresent(t, result, expected) + return result, pid } func enableParallelIfRequested(t *testing.T) { -- cgit v1.2.3