From 54f091e1b920943967c6aebc9c1f3122ce52e267 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Fri, 23 Jan 2026 15:55:48 -1000 Subject: Fix critical resilience issues from code review - DB connection pool: Allow 5 connections instead of 1 for better concurrency - JSON unmarshal: Add error handling to prevent nil slice issues - Context cancellation: Check ctx.Done() in aggregateData goroutines - Migration path: Make configurable via MIGRATION_DIR env var Co-Authored-By: Claude Opus 4.5 --- internal/handlers/handlers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/handlers/handlers_test.go') diff --git a/internal/handlers/handlers_test.go b/internal/handlers/handlers_test.go index e4a9f05..5628237 100644 --- a/internal/handlers/handlers_test.go +++ b/internal/handlers/handlers_test.go @@ -39,7 +39,7 @@ func setupTestDB(t *testing.T) (*store.Store, func()) { } // Initialize store (this runs migrations) - db, err := store.New(tmpFile.Name()) + db, err := store.New(tmpFile.Name(), "migrations") if err != nil { os.Chdir(originalDir) os.Remove(tmpFile.Name()) -- cgit v1.2.3