Skip to content

Commit c375921

Browse files
committed
chore: fix Test_parseInsightsStartAndEndTime test
It would always fail between 23:00-00:00 UTC (which it currently is).
1 parent dd2f799 commit c375921

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/insights_internal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func Test_parseInsightsStartAndEndTime(t *testing.T) {
6969
endTime: thisHourRoundUp.Format(layout),
7070
},
7171
wantStartTime: time.Date(2023, 7, today.Day(), 0, 0, 0, 0, time.UTC),
72-
wantEndTime: time.Date(2023, 7, today.Day(), thisHourRoundUp.Hour(), 0, 0, 0, time.UTC),
72+
wantEndTime: time.Date(2023, 7, thisHourRoundUp.Day(), thisHourRoundUp.Hour(), 0, 0, 0, time.UTC),
7373
wantOk: true,
7474
},
7575
{

0 commit comments

Comments
 (0)