From 487bf83f4e104c9b23c700633f8c211d9fe21fc7 Mon Sep 17 00:00:00 2001 From: jamesread Date: Mon, 10 Nov 2025 23:39:15 +0000 Subject: [PATCH] chore: use koanf tag in config reloader test --- service/internal/config/config_reloader_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }