diff --git a/pkg/validator/util_test.go b/pkg/validator/util_test.go index e555474..f2a4770 100644 --- a/pkg/validator/util_test.go +++ b/pkg/validator/util_test.go @@ -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)