From 909232502b76e27324c71cfcc94089d61414dadf Mon Sep 17 00:00:00 2001 From: gerrard Date: Sun, 14 Aug 2022 21:11:58 +0800 Subject: [PATCH] fix: update test case --- context_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"}, }, }