Move test resource to misc/test.

This commit is contained in:
Naoki Kosaka
2021-06-21 07:37:42 +09:00
parent 1260985b75
commit 846b600d95
22 changed files with 33 additions and 33 deletions

View File

@ -15,13 +15,13 @@ var ch chan bool
func TestMain(m *testing.M) {
var err error
testConfigPath := "../misc/config.yml"
testConfigPath := "../misc/test/config.yml"
file, _ := os.Open(testConfigPath)
defer file.Close()
viper.SetConfigType("yaml")
viper.ReadConfig(file)
viper.Set("ACTOR_PEM", "../misc/testKey.pem")
viper.Set("ACTOR_PEM", "../misc/test/testKey.pem")
viper.BindEnv("REDIS_URL")
globalConfig, err = NewRelayConfig()