Skip to content

Commit a1aeb79

Browse files
committed
chore: Adjust famedly metrics to use new Duration class for timedeltas
1 parent 6b80146 commit a1aeb79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/metrics/test_common_usage_metrics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from synapse.server import HomeServer
55
from synapse.types import create_requester
66
from synapse.util.clock import Clock
7+
from synapse.util.duration import Duration
78

89
from tests.unittest import FederatingHomeserverTestCase
910

@@ -159,7 +160,7 @@ def test_retained_users_gauge_update(self) -> None:
159160
# start the user_daily_visits table update loop
160161
self.clock.looping_call(
161162
self.hs.get_datastores().main.generate_user_daily_visits,
162-
5 * 60 * 1000,
163+
Duration(minutes=5),
163164
)
164165
metrics = self.get_success(self.manager.get_metrics())
165166

0 commit comments

Comments
 (0)