Build real connection before using txdb
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Jan Bader 2022-04-05 19:56:35 +00:00
parent 93679c2932
commit 95eb302d26

View File

@ -25,6 +25,10 @@ func TestMain(t *testing.T) {
SessionSecret: "random string for JWT authorization",
}
_, err := postgres.Connect("pgx", cfg.DatabaseConnection)
if err != nil {
log.Fatalf("Failed connecting to DB: %v", err)
}
queries, err := postgres.Connect("pgtx", cfg.DatabaseConnection)
if err != nil {
log.Fatalf("Failed connecting to DB: %v", err)