Rebase with staging

This commit is contained in:
yaoandrew
2019-10-28 23:30:52 -07:00
parent 722f7f3665
commit deb64b8701
5 changed files with 41 additions and 70 deletions
+10
View File
@@ -51,6 +51,16 @@ func setTestConfig() {
logrus.Fatal(err)
}
ipc := TestConfig.GetString("client.ipcPath")
// If we don't have an ipc path in the config file, check the env variable
if ipc == "" {
TestConfig.BindEnv("url", "INFURA_URL")
ipc = TestConfig.GetString("url")
}
if ipc == "" {
logrus.Fatal(errors.New("testing.toml IPC path or $INFURA_URL env variable need to be set"))
}
hn := TestConfig.GetString("database.hostname")
port := TestConfig.GetInt("database.port")
name := TestConfig.GetString("database.name")