diff --git a/src/_zkapauthorizer/tests/matchers.py b/src/_zkapauthorizer/tests/matchers.py index 7d214e3882594b82cd30200721bbe3a73db0ce4b..bf5ab30eeba9c029f70604c31952ed70597099cd 100644 --- a/src/_zkapauthorizer/tests/matchers.py +++ b/src/_zkapauthorizer/tests/matchers.py @@ -135,13 +135,13 @@ def leases_current(relevant_storage_indexes, now, min_lease_remaining): servers for which the leases on the given storage indexes do not expire before ``min_lease_remaining``. """ + def get_relevant_stats(storage_server): for (storage_index, shares) in storage_server.buckets.items(): if storage_index in relevant_storage_indexes: for (sharenum, stat) in shares.items(): yield stat - return AfterPreprocessing( # Get share stats for storage indexes we should have # visited and maintained.