diff --git a/service/internal/config/config_reloader_test.go b/service/internal/config/config_reloader_test.go index 7acc81b..5cece40 100644 --- a/service/internal/config/config_reloader_test.go +++ b/service/internal/config/config_reloader_test.go @@ -101,7 +101,10 @@ func TestEnvInConfig(t *testing.T) { t.Errorf("Error loading YAML: %v", err) continue } - if err := k.Unmarshal(".", cfg); err != nil { + + if err := k.UnmarshalWithConf("", cfg, koanf.UnmarshalConf{ + Tag: "koanf", + }); err != nil { t.Errorf("Error unmarshalling config: %v", err) continue }