From 76ebb62d0216a11c92b2b4a5158aaabec8508c70 Mon Sep 17 00:00:00 2001 From: Martin Lees Date: Thu, 12 Dec 2019 17:40:18 +0100 Subject: [PATCH] fix flagTests loop --- flag_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flag_test.go b/flag_test.go index 9151089..0801cfb 100644 --- a/flag_test.go +++ b/flag_test.go @@ -121,8 +121,8 @@ func TestFlagsFromEnv(t *testing.T) { a := App{ Flags: []Flag{test.flag}, Action: func(ctx *Context) error { - if !reflect.DeepEqual(ctx.value(test.flag.Names()[0]), test.output) { - t.Errorf("ex:%01d expected %q to be parsed as %#v, instead was %#v", i, test.input, test.output, ctx.value(test.flag.Names()[0])) + if !reflect.DeepEqual(ctx.Value(test.flag.Names()[0]), test.output) { + t.Errorf("ex:%01d expected %q to be parsed as %#v, instead was %#v", i, test.input, test.output, ctx.Value(test.flag.Names()[0])) } return nil },