This commit is contained in:
@@ -40,6 +40,10 @@ func TestMonthlyGranularityCutsEveryPanelFromTheSelectedRange(t *testing.T) {
|
||||
}
|
||||
start, _ := time.Parse(time.RFC3339, "2026-11-01T00:00:00+08:00")
|
||||
end, _ := time.Parse(time.RFC3339, "2026-12-01T00:00:00+08:00")
|
||||
// The handler builds the window through dobotaiops.NewWindow, which
|
||||
// normalises both ends to UTC. Feed the store the same shape here, otherwise
|
||||
// this test keeps a +08 location the production path never has.
|
||||
start, end = start.UTC(), end.UTC()
|
||||
got, err := s.ReadMasterDashboard(ctx, dobotaiops.RecordQuery{
|
||||
Window: dobotaiops.Window{TenantKey: s.tenant, Start: start, End: end},
|
||||
Granularity: dashboardGranularityMonth,
|
||||
|
||||
Reference in New Issue
Block a user