Check error
This commit is contained in:
parent
042fc9a36c
commit
51b024a2d5
@ -27,7 +27,15 @@ var TestChainConfig = ¶ms.ChainConfig{
|
||||
Ethash: new(params.EthashConfig),
|
||||
}
|
||||
|
||||
var TestDBConfig, _ = postgres.TestConfig.WithEnv()
|
||||
var TestDBConfig postgres.Config
|
||||
|
||||
func init() {
|
||||
var err error
|
||||
TestDBConfig, err = postgres.TestConfig.WithEnv()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
func SetupDB() *sqlx.DB {
|
||||
db, err := postgres.ConnectSQLX(context.Background(), TestDBConfig)
|
||||
|
Loading…
Reference in New Issue
Block a user