From d48be62f68f5f80943b4b9fedc454a4fe02de262 Mon Sep 17 00:00:00 2001 From: apostasie Date: Thu, 17 Oct 2024 12:41:00 -0700 Subject: [PATCH] Fix semantic of Fail to not care about exit code Signed-off-by: apostasie --- pkg/testutil/test/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/testutil/test/helpers.go b/pkg/testutil/test/helpers.go index 99d769d7c3e..06411df8e99 100644 --- a/pkg/testutil/test/helpers.go +++ b/pkg/testutil/test/helpers.go @@ -70,7 +70,7 @@ func (help *helpersInternal) Anyhow(args ...string) { // Fail will run a command and make sure it does fail func (help *helpersInternal) Fail(args ...string) { help.Command(args...).Run(&Expected{ - ExitCode: 1, + ExitCode: -1, }) }