diff --git a/command_test.go b/command_test.go index d6e40c9a27..3aa2a45996 100644 --- a/command_test.go +++ b/command_test.go @@ -538,7 +538,8 @@ func TestCommand_PreservesSeparatorOnSubcommands(t *testing.T) { SliceFlagSeparator: ";", } - app.Run([]string{"app", "foo", "bar", "--my-flag", "1;2;3"}) + err := app.Run([]string{"app", "foo", "bar", "--my-flag", "1;2;3"}) + expect(t, err, nil) expect(t, values, []string{"1", "2", "3"}) } diff --git a/flag_test.go b/flag_test.go index 32259c547a..4971de624f 100644 --- a/flag_test.go +++ b/flag_test.go @@ -126,7 +126,8 @@ func TestBoolFlagCountFromContext(t *testing.T) { }, } - app.Run(bct.input) + err := app.Run(bct.input) + expect(t, err, nil) } } diff --git a/help_test.go b/help_test.go index 1188f85e2d..80b38ac1d9 100644 --- a/help_test.go +++ b/help_test.go @@ -1330,7 +1330,7 @@ func TestDefaultCompleteWithFlags(t *testing.T) { tc.a.HideHelp = true tc.a.Writer = writer os.Args = tc.argv - tc.a.Run(tc.argv) + _ = tc.a.Run(tc.argv) written := writer.String()