Build real connection before using txdb
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
93679c2932
commit
95eb302d26
@ -25,6 +25,10 @@ func TestMain(t *testing.T) {
|
|||||||
SessionSecret: "random string for JWT authorization",
|
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)
|
queries, err := postgres.Connect("pgtx", cfg.DatabaseConnection)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed connecting to DB: %v", err)
|
log.Fatalf("Failed connecting to DB: %v", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user