mirror of
https://github.com/spf13/viper
synced 2024-12-22 11:37:02 +00:00
Use test log
This commit is contained in:
parent
41f829b2c9
commit
0d783e7344
1 changed files with 1 additions and 1 deletions
|
@ -1454,7 +1454,7 @@ func newViperWithSymlinkedConfigFile(t *testing.T) (*Viper, string, string, func
|
||||||
// and link the `<watchdir>/datadir1/config.yaml` to `<watchdir>/config.yaml`
|
// and link the `<watchdir>/datadir1/config.yaml` to `<watchdir>/config.yaml`
|
||||||
configFile := path.Join(watchDir, "config.yaml")
|
configFile := path.Join(watchDir, "config.yaml")
|
||||||
os.Symlink(path.Join(watchDir, "data", "config.yaml"), configFile)
|
os.Symlink(path.Join(watchDir, "data", "config.yaml"), configFile)
|
||||||
fmt.Printf("Config file location: %s\n", path.Join(watchDir, "config.yaml"))
|
t.Logf("Config file location: %s\n", path.Join(watchDir, "config.yaml"))
|
||||||
// init Viper
|
// init Viper
|
||||||
v := New()
|
v := New()
|
||||||
v.SetConfigFile(configFile)
|
v.SetConfigFile(configFile)
|
||||||
|
|
Loading…
Reference in a new issue