create integration toml file

This commit is contained in:
Taka Goto
2018-11-06 09:25:08 -06:00
parent 3b722c132e
commit 2cc9826be9
2 changed files with 33 additions and 1 deletions
@@ -6,6 +6,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/spf13/viper"
"io/ioutil"
)
@@ -17,6 +18,13 @@ func TestIntegrationTests(t *testing.T) {
}
var _ = BeforeSuite(func() {
ipc = "http://147.75.64.249:8545" //self hosted parity kovan node
testConfig := viper.New()
testConfig.SetConfigName("integration")
testConfig.AddConfigPath("$GOPATH/src/github.com/vulcanize/vulcanizedb/environments/")
err := testConfig.ReadInConfig()
ipc = testConfig.GetString("client.ipcPath")
if err != nil {
log.Fatal(err)
}
log.SetOutput(ioutil.Discard)
})