Geth 1.13 (Cancun) update #8
@ -27,7 +27,15 @@ var TestChainConfig = ¶ms.ChainConfig{
|
|||||||
Ethash: new(params.EthashConfig),
|
Ethash: new(params.EthashConfig),
|
||||||
}
|
}
|
||||||
|
|
||||||
var TestDBConfig, _ = postgres.TestConfig.WithEnv()
|
var TestDBConfig postgres.Config
|
||||||
roysc marked this conversation as resolved
Outdated
|
|||||||
|
|
||||||
|
func init() {
|
||||||
|
var err error
|
||||||
|
TestDBConfig, err = postgres.TestConfig.WithEnv()
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func SetupDB() *sqlx.DB {
|
func SetupDB() *sqlx.DB {
|
||||||
db, err := postgres.ConnectSQLX(context.Background(), TestDBConfig)
|
db, err := postgres.ConnectSQLX(context.Background(), TestDBConfig)
|
||||||
|
Loading…
Reference in New Issue
Block a user
is the _ an error? Should be checked if so