feat: sample recent business events

This commit is contained in:
2026-09-18 21:12:05 +08:00
parent 5284206731
commit 8ce9f4e1fa
14 changed files with 68 additions and 18 deletions

View File

@@ -60,6 +60,9 @@ func TestIntegrationOperationalSnapshot(t *testing.T) {
if got := snapshot.TaskStates["WAITING"]; got < 1 {
t.Fatalf("waiting task was not observed: %#v", snapshot.TaskStates)
}
if got := snapshot.RecentEvents["task.accepted"]; got < 1 {
t.Fatalf("accepted event was not observed: %#v", snapshot.RecentEvents)
}
if snapshot.TaskOldestAgeSeconds < 0 || snapshot.DeliveryOldestAgeSeconds < 0 || snapshot.WorkflowOldestAgeSeconds < 0 {
t.Fatalf("negative age in snapshot: %#v", snapshot)
}