From 1b236c9599cdfb2ce0bef34eedec1d61bff8b900 Mon Sep 17 00:00:00 2001 From: "Dr. Tobias Quathamer" Date: Thu, 15 Nov 2018 10:27:52 +0100 Subject: [PATCH] Fix failing TestBindPFlagsStringSlice After mitchelh/mapstructure has been updated, the expected test result needs to be updated to the actual returned result. Closes: spf13/viper#579. --- viper_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper_test.go b/viper_test.go index fa3903e..677584e 100644 --- a/viper_test.go +++ b/viper_test.go @@ -617,7 +617,7 @@ func TestBindPFlagsStringSlice(t *testing.T) { Expected []string Value string }{ - {[]string{}, ""}, + {[]string(nil), ""}, {[]string{"jeden"}, "jeden"}, {[]string{"dwa", "trzy"}, "dwa,trzy"}, {[]string{"cztery", "piec , szesc"}, "cztery,\"piec , szesc\""},