fixing test
This commit is contained in:
parent
9630e101c3
commit
9a33ae888c
@ -265,13 +265,12 @@ func TestStringApplyInputSourceMethodSet_Alias(t *testing.T) {
|
|||||||
Flag: NewStringFlag(&cli.StringFlag{Name: "test", Aliases: []string{"test_alias"}}),
|
Flag: NewStringFlag(&cli.StringFlag{Name: "test", Aliases: []string{"test_alias"}}),
|
||||||
FlagName: "test_alias",
|
FlagName: "test_alias",
|
||||||
MapValue: "hello",
|
MapValue: "hello",
|
||||||
ContextValueString: "goodbye",
|
|
||||||
}
|
}
|
||||||
c := runTest(t, tis)
|
c := runTest(t, tis)
|
||||||
expect(t, "goodbye", c.String("test_alias"))
|
expect(t, "hello", c.String("test_alias"))
|
||||||
|
|
||||||
c = runRacyTest(t, tis)
|
c = runRacyTest(t, tis)
|
||||||
refute(t, "goodbye", c.String("test_alias"))
|
refute(t, "hello", c.String("test_alias"))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestStringApplyInputSourceMethodSet(t *testing.T) {
|
func TestStringApplyInputSourceMethodSet(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user