Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

test(activity): record source-narrowing events at the current time so they stay inside the 7-day retention

Luigi Agosti72a453c2634e
diff --git a/internal/activity/activity_test.go b/internal/activity/activity_test.go
index 4d8df6fd..7fc1f360 100644
--- a/internal/activity/activity_test.go
+++ b/internal/activity/activity_test.go
@@ -819,7 +819,7 @@ func TestQuerySourcesNarrowsFileWalkAndSkipsUnrequestedSource(t *testing.T) {
if err != nil {
t.Fatalf("NewStore: %v", err)
}
- day := time.Date(2026, 9, 12, 10, 0, 0, 0, time.UTC)
+ day := time.Now().UTC()
for _, src := range []string{SourceClient, SourceScheduler, SourceDashboard} {
if err := store.Record(Event{Source: src, Timestamp: day, Method: "GET", Path: "/" + src, Status: 200}); err != nil {
t.Fatalf("Record(%s): %v", src, err)