Explorar o código

chore: use koanf tag in config reloader test

jamesread hai 7 meses
pai
achega
487bf83f4e
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      service/internal/config/config_reloader_test.go

+ 4 - 1
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
 		}