@@ -126,7 +126,7 @@ func TestTimeParseWeekday(t *testing.T) {
126126 tc := tests [i ]
127127 t .Run (tc .input , func (t * testing.T ) {
128128 timeframe , err := ParseTimeFrameEntry (tc .input )
129- require .Error (t , err )
129+ require .NoError (t , err )
130130 assert .Equal (t , tc .expectedWeekDay , timeframe .Weekday )
131131 })
132132 }
@@ -154,7 +154,7 @@ func TestTimeParseHours(t *testing.T) {
154154 tc := tests [i ]
155155 t .Run (tc .input , func (t * testing.T ) {
156156 timeframe , err := ParseTimeFrameEntry (tc .input )
157- require .Error (t , err )
157+ require .NoError (t , err )
158158 assert .Equal (t , tc .expectedHourStart , timeframe .HourStart )
159159 assert .Equal (t , tc .expectedHourEnd , timeframe .HourEnd )
160160 })
@@ -221,7 +221,7 @@ func TestTimeFrameMatch(t *testing.T) {
221221 tc := tests [i ]
222222 t .Run (tc .input , func (t * testing.T ) {
223223 timeframe , err := ParseTimeFrameEntry (tc .input )
224- require .Error (t , err )
224+ require .NoError (t , err )
225225 assert .Equal (t , timeframe .Match (tc .currentTime ), tc .shouldMatch )
226226 })
227227 }
0 commit comments