Skip to content

Commit 7fbca62

Browse files
authored
chore: fix Test_parseInsightsStartAndEndTime flake (coder#12377)
Fixes coder#10600
1 parent 5a53afd commit 7fbca62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/insights_internal_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ func Test_parseInsightsStartAndEndTime(t *testing.T) {
8181
wantOk: false,
8282
},
8383
{
84-
name: "Today (hour round up)",
84+
name: "Today hour round up",
8585
args: args{
8686
startTime: today.Format(layout),
8787
endTime: thisHourRoundUp.Format(layout),
8888
},
8989
wantStartTime: time.Date(today.Year(), today.Month(), today.Day(), 0, 0, 0, 0, time.UTC),
90-
wantEndTime: time.Date(today.Year(), today.Month(), thisHourRoundUp.Day(), thisHourRoundUp.Hour(), 0, 0, 0, time.UTC),
90+
wantEndTime: time.Date(thisHourRoundUp.Year(), thisHourRoundUp.Month(), thisHourRoundUp.Day(), thisHourRoundUp.Hour(), 0, 0, 0, time.UTC),
9191
wantOk: true,
9292
},
9393
{

0 commit comments

Comments
 (0)