Sfoglia il codice sorgente

chore: use koanf tag in config reloader test

jamesread 7 mesi fa
parent
commit
487bf83f4e
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  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
 		}