diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-26 08:50:12 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-26 08:50:12 +0200 |
| commit | ad4d7fca20d80f71ccabef3281e3f80081f4db62 (patch) | |
| tree | 03e9e13d86b17ae99ea91c3b5e344539e28ebf32 /integrationtests/helpers_test.go | |
| parent | 4c34b9efcd539c819648c927d7e3f53220df8ad2 (diff) | |
Add byte assertions for read/write integration scenarios
Diffstat (limited to 'integrationtests/helpers_test.go')
| -rw-r--r-- | integrationtests/helpers_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -49,6 +49,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) result, pid, err := h.Run(scenario, defaultDuration) @@ -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) { |
