fixing test

This commit is contained in:
James He 2022-08-25 17:18:51 -05:00 committed by Dan Buch
parent 9630e101c3
commit 9a33ae888c
Signed by: meatballhat
GPG Key ID: A12F782281063434

View File

@ -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) {