Use test log

This commit is contained in:
Andrew Stuart 2018-09-28 01:04:19 -07:00
parent 41f829b2c9
commit 0d783e7344
No known key found for this signature in database
GPG key ID: D409317C5B5ACD4D

View file

@ -1454,7 +1454,7 @@ func newViperWithSymlinkedConfigFile(t *testing.T) (*Viper, string, string, func
// and link the `<watchdir>/datadir1/config.yaml` to `<watchdir>/config.yaml`
configFile := path.Join(watchDir, "config.yaml")
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
v := New()
v.SetConfigFile(configFile)