mirror of https://github.com/coder/coder.git
chore: fix `Test_parseInsightsStartAndEndTime` flake (#12377)
Fixes https://github.com/coder/coder/issues/10600
This commit is contained in:
parent
5a53afda46
commit
7fbca62e08
|
@ -81,13 +81,13 @@ func Test_parseInsightsStartAndEndTime(t *testing.T) {
|
||||||
wantOk: false,
|
wantOk: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Today (hour round up)",
|
name: "Today hour round up",
|
||||||
args: args{
|
args: args{
|
||||||
startTime: today.Format(layout),
|
startTime: today.Format(layout),
|
||||||
endTime: thisHourRoundUp.Format(layout),
|
endTime: thisHourRoundUp.Format(layout),
|
||||||
},
|
},
|
||||||
wantStartTime: time.Date(today.Year(), today.Month(), today.Day(), 0, 0, 0, 0, time.UTC),
|
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,
|
wantOk: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue