fix: add HTTP client connection pool limits, worker graceful shutdown, and PostgreSQL skip fallback for tests

This commit is contained in:
Your Name
2026-05-11 12:43:51 +08:00
parent 7e17e59ad1
commit a6ff7c88db
3 changed files with 27 additions and 5 deletions

View File

@@ -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()

View File

@@ -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()