From 78a20770ddeea2a7abacf26fa1ba1cf965e18781 Mon Sep 17 00:00:00 2001 From: josh Date: Wed, 13 May 2026 23:32:50 -0400 Subject: [PATCH] Fix nil Activity store in test setup causing panic on rebuild Co-Authored-By: Claude Opus 4.6 --- internal/api/smoke_test.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/internal/api/smoke_test.go b/internal/api/smoke_test.go index 4fb172b..09cabd0 100644 --- a/internal/api/smoke_test.go +++ b/internal/api/smoke_test.go @@ -37,6 +37,7 @@ func newTestServer(t *testing.T) *httptest.Server { ops := &store.Operations{DB: database} locks := &store.Locks{DB: database, TTLMinutes: 60} images := &store.Images{DB: database} + activity := &store.Activity{DB: database} hub := events.NewHub() t.Cleanup(func() { hub.Shutdown(context.Background()) }) @@ -55,10 +56,11 @@ func newTestServer(t *testing.T) *httptest.Server { serverTypes := mustLoadServerTypes(t, tmp) runner := &orchestrator.Runner{ - Hosts: hosts, - Ops: ops, - Locks: locks, - Hub: hub, + Hosts: hosts, + Ops: ops, + Locks: locks, + Hub: hub, + Activity: activity, } pxeSupervisor := pxe.NewSupervisor(pxe.SupervisorConfig{Enabled: false}) @@ -101,6 +103,7 @@ func newTestServer(t *testing.T) *httptest.Server { Ops: ops, Locks: locks, Images: images, + Activity: activity, ImageSvc: imageSvc, Runner: runner, Orchestrator: hostOrch,