All altsrc tests passing

This commit is contained in:
Ajitem Sahasrabuddhe
2019-09-13 07:42:23 +05:30
parent c75fee9224
commit 75b7f09a46
2 changed files with 2 additions and 2 deletions

View File

@@ -319,7 +319,7 @@ func runTest(t *testing.T, test testApplyInputSource) *cli.Context {
defer os.Setenv(test.EnvVarName, "")
}
test.Flag.Apply(set)
_ = test.Flag.Apply(set)
if test.ContextValue != nil {
f := set.Lookup(test.FlagName)
f.Value = test.ContextValue