diff --git a/context_test.go b/context_test.go index 5cef65e..55a9ead 100644 --- a/context_test.go +++ b/context_test.go @@ -557,11 +557,12 @@ func TestCheckRequiredFlags(t *testing.T) { }, }, { - testCase: "required_flag_with_one_character", + testCase: "required_flag_with_one_character", + expectedAnError: true, + expectedErrorContents: []string{"Required flag \"n\" not set"}, flags: []Flag{ &StringFlag{Name: "n", Required: true}, }, - parseInput: []string{"--n", "asd"}, }, }