chore: fix `Test_parseInsightsStartAndEndTime` flake (#12377)

Fixes https://github.com/coder/coder/issues/10600
This commit is contained in:
Colin Adler 2024-02-29 18:20:25 -06:00 committed by GitHub
parent 5a53afda46
commit 7fbca62e08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -81,13 +81,13 @@ func Test_parseInsightsStartAndEndTime(t *testing.T) {
wantOk: false,
},
{
name: "Today (hour round up)",
name: "Today hour round up",
args: args{
startTime: today.Format(layout),
endTime: thisHourRoundUp.Format(layout),
},
wantStartTime: time.Date(today.Year(), today.Month(), today.Day(), 0, 0, 0, 0, time.UTC),
wantEndTime: time.Date(today.Year(), today.Month(), thisHourRoundUp.Day(), thisHourRoundUp.Hour(), 0, 0, 0, time.UTC),
wantEndTime: time.Date(thisHourRoundUp.Year(), thisHourRoundUp.Month(), thisHourRoundUp.Day(), thisHourRoundUp.Hour(), 0, 0, 0, time.UTC),
wantOk: true,
},
{