summaryrefslogtreecommitdiff
path: root/internal/handlers/tab_state_test.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-23 15:55:48 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-23 15:55:48 -1000
commit54f091e1b920943967c6aebc9c1f3122ce52e267 (patch)
treeea60ba6e86aa9247e73a30094a1be6f39bff0b56 /internal/handlers/tab_state_test.go
parentbc4149d7c9fe7a698cf07895b504ab8f2b26f649 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'internal/handlers/tab_state_test.go')
-rw-r--r--internal/handlers/tab_state_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handlers/tab_state_test.go b/internal/handlers/tab_state_test.go
index d7bb8dd..60f1340 100644
--- a/internal/handlers/tab_state_test.go
+++ b/internal/handlers/tab_state_test.go
@@ -13,7 +13,7 @@ import (
func TestHandleDashboard_TabState(t *testing.T) {
// Create a temporary database for testing
- db, err := store.New(":memory:")
+ db, err := store.New(":memory:", "../../migrations")
if err != nil {
t.Fatalf("Failed to create test database: %v", err)
}