From 9a33ae888caa3af796e769de85fb88e7845945b2 Mon Sep 17 00:00:00 2001 From: James He Date: Thu, 25 Aug 2022 17:18:51 -0500 Subject: [PATCH] fixing test --- altsrc/flag_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/altsrc/flag_test.go b/altsrc/flag_test.go index 55105f0..bece6aa 100644 --- a/altsrc/flag_test.go +++ b/altsrc/flag_test.go @@ -265,13 +265,12 @@ func TestStringApplyInputSourceMethodSet_Alias(t *testing.T) { Flag: NewStringFlag(&cli.StringFlag{Name: "test", Aliases: []string{"test_alias"}}), FlagName: "test_alias", MapValue: "hello", - ContextValueString: "goodbye", } c := runTest(t, tis) - expect(t, "goodbye", c.String("test_alias")) + expect(t, "hello", c.String("test_alias")) c = runRacyTest(t, tis) - refute(t, "goodbye", c.String("test_alias")) + refute(t, "hello", c.String("test_alias")) } func TestStringApplyInputSourceMethodSet(t *testing.T) {