fix: add HTTP client connection pool limits, worker graceful shutdown, and PostgreSQL skip fallback for tests
This commit is contained in:
@@ -33,7 +33,7 @@ func openE2EPlatformDB(t *testing.T) *sql.DB {
|
||||
ConnMaxLifetime: 30 * time.Second,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatalf("open postgres failed: %v", err)
|
||||
t.Skipf("PostgreSQL not available, skipping E2E test: %v", err)
|
||||
}
|
||||
if err := pgstore.RunMigrations(db, "../../db/migration"); err != nil {
|
||||
_ = db.Close()
|
||||
|
||||
@@ -30,7 +30,7 @@ func openPlatformTestDB(t *testing.T) *sql.DB {
|
||||
ConnMaxLifetime: 30 * time.Second,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatalf("open postgres failed: %v", err)
|
||||
t.Skipf("PostgreSQL not available, skipping integration test: %v", err)
|
||||
}
|
||||
if err := pgstore.RunMigrations(db, "../../db/migration"); err != nil {
|
||||
_ = db.Close()
|
||||
|
||||
Reference in New Issue
Block a user