Remove patch "Make test pass with new mitchellh/mapstructure version"
which has been applied to upstream 1.3.1.
This reverts commit 20a8e644a790d575435bc0143a81a6417fb553f6.
Anthony Fok
5 years ago
0 | From: "Dr. Tobias Quathamer" <toddy@debian.org> | |
1 | Date: Thu, 15 Nov 2018 09:41:44 +0100 | |
2 | Subject: Make test pass with new mitchellh/mapstructure version | |
3 | ||
4 | See https://github.com/spf13/viper/issues/579 | |
5 | --- | |
6 | viper_test.go | 2 +- | |
7 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
8 | ||
9 | diff --git a/viper_test.go b/viper_test.go | |
10 | index 15966e4..ea0b17a 100644 | |
11 | --- a/viper_test.go | |
12 | +++ b/viper_test.go | |
13 | @@ -582,7 +582,7 @@ func TestBindPFlagsStringSlice(t *testing.T) { | |
14 | Expected []string | |
15 | Value string | |
16 | }{ | |
17 | - {[]string{}, ""}, | |
18 | + {[]string(nil), ""}, | |
19 | {[]string{"jeden"}, "jeden"}, | |
20 | {[]string{"dwa", "trzy"}, "dwa,trzy"}, | |
21 | {[]string{"cztery", "piec , szesc"}, "cztery,\"piec , szesc\""}} { |