From d4ea6adcc30bf095d3f4bd8084ddad95991086f5 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 83d98687..a3cefa9e 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)