Skip to content

Commit

Permalink
Fix semantic of Fail to not care about exit code
Browse files Browse the repository at this point in the history
Signed-off-by: apostasie <[email protected]>
  • Loading branch information
apostasie committed Oct 17, 2024
1 parent c15643f commit 5c6eb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/testutil/test/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}

Expand Down

0 comments on commit 5c6eb21

Please sign in to comment.