We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7da7f0d commit d30d325Copy full SHA for d30d325
1 file changed
garden-app/pkg/light_schedule_test.go
@@ -184,11 +184,11 @@ func TestNextChange(t *testing.T) {
184
// Light turns on at 7AM and off at 7PM. It is currently 10PM, so it will turn on tomorrow morning
185
name: "TurnsOnAgainTomorrow",
186
ls: LightSchedule{
187
- StartTime: &StartTime{Time: time.Date(0, 0, 0, 07, 0, 0, 0, time.UTC)},
+ StartTime: &StartTime{Time: time.Date(0, 0, 0, 0o7, 0, 0, 0, time.UTC)},
188
Duration: &Duration{Duration: 12 * time.Hour},
189
},
190
currentTime: time.Date(2023, time.November, 8, 22, 0, 0, 0, time.UTC),
191
- expectedTime: time.Date(2023, time.November, 9, 07, 0, 0, 0, time.UTC),
+ expectedTime: time.Date(2023, time.November, 9, 0o7, 0, 0, 0, time.UTC),
192
expectedState: LightStateOn,
193
194
}
0 commit comments