mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 09:10:55 -05:00
Change jitter to be a factor rather than absolute value
This commit is contained in:
parent
861d663c15
commit
1dec31560e
2 changed files with 14 additions and 13 deletions
|
|
@ -551,7 +551,7 @@ class MatrixFederationAgentTests(TestCase):
|
|||
self.assertEqual(self.well_known_cache[b"testserv"], b"target-server")
|
||||
|
||||
# check the cache expires
|
||||
self.reactor.pump((25 * 3600,))
|
||||
self.reactor.pump((48 * 3600,))
|
||||
self.well_known_cache.expire()
|
||||
self.assertNotIn(b"testserv", self.well_known_cache)
|
||||
|
||||
|
|
@ -639,7 +639,7 @@ class MatrixFederationAgentTests(TestCase):
|
|||
self.assertEqual(self.well_known_cache[b"testserv"], b"target-server")
|
||||
|
||||
# check the cache expires
|
||||
self.reactor.pump((25 * 3600,))
|
||||
self.reactor.pump((48 * 3600,))
|
||||
self.well_known_cache.expire()
|
||||
self.assertNotIn(b"testserv", self.well_known_cache)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue