synapse/tests/util
Erik Johnston 1bddd25a85
Port Clock functions to use Duration class (#19229)
This changes the arguments in clock functions to be `Duration` and
converts call sites and constants into `Duration`. There are still some
more functions around that should be converted (e.g.
`timeout_deferred`), but we leave that to another PR.

We also changes `.as_secs()` to return a float, as the rounding broke
things subtly. The only reason to keep it (its the same as
`timedelta.total_seconds()`) is for symmetry with `as_millis()`.

Follows on from https://github.com/element-hq/synapse/pull/19223
2025-12-01 13:55:06 +00:00
..
caches Port Clock functions to use Duration class (#19229) 2025-12-01 13:55:06 +00:00
__init__.py
test_async_helpers.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_background_queue.py Fixup logcontexts after replication PR. (#19146) 2025-11-05 15:38:14 +00:00
test_batching_queue.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_check_dependencies.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_dict_cache.py Cleanly shutdown SynapseHomeServer object (#18828) 2025-10-01 02:42:09 +00:00
test_events.py Add plain-text handling for rich-text topics as per MSC3765 (#18195) 2025-07-09 14:13:54 -05:00
test_expiring_cache.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_file_consumer.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_itertools.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_linearizer.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_logcontext.py Port Clock functions to use Duration class (#19229) 2025-12-01 13:55:06 +00:00
test_logformatter.py
test_lrucache.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_macaroons.py
test_mutable_overlay_mapping.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_ratelimitutils.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_retryutils.py Cleanly shutdown SynapseHomeServer object (#18828) 2025-10-01 02:42:09 +00:00
test_rwlock.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_stream_change_cache.py Refactor cache metrics to be homeserver-scoped (#18604) 2025-07-16 16:04:57 -05:00
test_stringutils.py Implement MSC4133 to support custom profile fields. (#17488) 2025-01-21 11:11:04 +00:00
test_task_scheduler.py Port Clock functions to use Duration class (#19229) 2025-12-01 13:55:06 +00:00
test_threepids.py
test_treecache.py
test_wheel_timer.py