mirror of https://github.com/zulip/zulip.git
test_presence: Fix test which moved days, not seconds.
This commit is contained in:
parent
39fb1a0f70
commit
0f132cef4d
|
@ -648,7 +648,8 @@ class UserPresenceAggregationTests(ZulipTestCase):
|
||||||
|
|
||||||
with mock.patch(
|
with mock.patch(
|
||||||
"zerver.views.presence.timezone_now",
|
"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
|
# After settings.OFFLINE_THRESHOLD_SECS + 1 this generated, recent presence data
|
||||||
# will count as offline.
|
# will count as offline.
|
||||||
|
|
Loading…
Reference in New Issue