From b0c512d4a166653642033bcd6594864fb35bdbcd Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sun, 16 Mar 2025 14:16:04 +0100 Subject: [PATCH] config: fix test case for slice values this is a behaviour change in the lastest version of viper Signed-off-by: Nicola Murino --- internal/config/config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 74f3a7e9..6e4a26c2 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -528,7 +528,7 @@ func TestOverrideSliceValues(t *testing.T) { c = make(map[string]any) c["httpd"] = httpd.Conf{ - Bindings: []httpd.Binding{}, + Bindings: nil, } jsonConf, err = json.Marshal(c) assert.NoError(t, err)