test: skip postgres store tests when PostgreSQL is unavailable
This commit is contained in:
@@ -39,7 +39,7 @@ func openDBForTest(t *testing.T) *sql.DB {
|
||||
ConnMaxLifetime: time.Second * 30,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatalf("failed to open DB: %v", err)
|
||||
t.Skipf("PostgreSQL not available, skipping postgres store test: %v", err)
|
||||
}
|
||||
if err := RunMigrations(db, filepath.Join("..", "..", "..", "db", "migration")); err != nil {
|
||||
_ = db.Close()
|
||||
|
||||
Reference in New Issue
Block a user