@@ -206,6 +206,7 @@ def test_timeout_with_no_future_complete_checkin(self):
206206 status = CheckInStatus .IN_PROGRESS ,
207207 date_added = check_in_24hr_ago ,
208208 date_updated = check_in_24hr_ago ,
209+ timeout_at = check_in_24hr_ago + timedelta (minutes = 30 ),
209210 )
210211 # We started another checkin right now
211212 checkin2 = MonitorCheckIn .objects .create (
@@ -215,6 +216,7 @@ def test_timeout_with_no_future_complete_checkin(self):
215216 status = CheckInStatus .IN_PROGRESS ,
216217 date_added = next_checkin_ts ,
217218 date_updated = next_checkin_ts ,
219+ timeout_at = next_checkin_ts + timedelta (minutes = 30 ),
218220 )
219221
220222 assert checkin1 .date_added == checkin1 .date_updated == check_in_24hr_ago
@@ -268,6 +270,7 @@ def test_timeout_with_future_complete_checkin(self):
268270 status = CheckInStatus .IN_PROGRESS ,
269271 date_added = check_in_24hr_ago ,
270272 date_updated = check_in_24hr_ago ,
273+ timeout_at = check_in_24hr_ago + timedelta (minutes = 30 ),
271274 )
272275 checkin2 = MonitorCheckIn .objects .create (
273276 monitor = monitor ,
@@ -276,6 +279,7 @@ def test_timeout_with_future_complete_checkin(self):
276279 status = CheckInStatus .OK ,
277280 date_added = next_checkin_ts ,
278281 date_updated = next_checkin_ts ,
282+ timeout_at = next_checkin_ts + timedelta (minutes = 30 ),
279283 )
280284
281285 assert checkin1 .date_added == checkin1 .date_updated == check_in_24hr_ago
@@ -321,6 +325,7 @@ def test_timeout_via_max_runtime_configuration(self):
321325 status = CheckInStatus .IN_PROGRESS ,
322326 date_added = next_checkin_ts ,
323327 date_updated = next_checkin_ts ,
328+ timeout_at = next_checkin_ts + timedelta (minutes = 60 ),
324329 )
325330
326331 assert checkin .date_added == checkin .date_updated == next_checkin_ts
@@ -424,6 +429,7 @@ def test_timeout_exception_handling(self, logger):
424429 status = CheckInStatus .IN_PROGRESS ,
425430 date_added = check_in_24hr_ago ,
426431 date_updated = check_in_24hr_ago ,
432+ timeout_at = check_in_24hr_ago + timedelta (minutes = 30 ),
427433 )
428434
429435 # This monitor will be fine
@@ -448,6 +454,7 @@ def test_timeout_exception_handling(self, logger):
448454 status = CheckInStatus .IN_PROGRESS ,
449455 date_added = check_in_24hr_ago ,
450456 date_updated = check_in_24hr_ago ,
457+ timeout_at = check_in_24hr_ago + timedelta (minutes = 30 ),
451458 )
452459 checkin2 = MonitorCheckIn .objects .create (
453460 monitor = monitor ,
@@ -456,6 +463,7 @@ def test_timeout_exception_handling(self, logger):
456463 status = CheckInStatus .IN_PROGRESS ,
457464 date_added = next_checkin_ts ,
458465 date_updated = next_checkin_ts ,
466+ timeout_at = next_checkin_ts + timedelta (minutes = 30 ),
459467 )
460468
461469 assert checkin1 .date_added == checkin1 .date_updated == check_in_24hr_ago
0 commit comments