test_presence: Fix test which moved days, not seconds.

This commit is contained in:
Alex Vandiver 2023-11-28 18:35:04 +00:00 committed by Tim Abbott
parent 39fb1a0f70
commit 0f132cef4d
1 changed files with 2 additions and 1 deletions

View File

@ -648,7 +648,8 @@ class UserPresenceAggregationTests(ZulipTestCase):
with mock.patch(
"zerver.views.presence.timezone_now",
return_value=validate_time + datetime.timedelta(settings.OFFLINE_THRESHOLD_SECS + 1),
return_value=validate_time
+ datetime.timedelta(seconds=settings.OFFLINE_THRESHOLD_SECS + 1),
):
# After settings.OFFLINE_THRESHOLD_SECS + 1 this generated, recent presence data
# will count as offline.