You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
261 B
15 lines
261 B
package util
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
func TestReadInConfig(t *testing.T) {
|
|
DoNotSetConfigName = true
|
|
viper.SetConfigFile("test.yaml")
|
|
if err := ReadInConfig(); err != nil {
|
|
t.Fatalf("could not read in config file: %v", err)
|
|
}
|
|
}
|
|
|