diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-01-15 11:00:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 11:00:13 -0500 |
commit | 74dd90604189a0310c7b2f7eed0e6b2ac26d04f1 (patch) | |
tree | e2e17534c1a80a23569391b968241f655a26fd56 /tests/http/federation | |
parent | Remote dependency on distutils (#9125) (diff) | |
download | synapse-74dd90604189a0310c7b2f7eed0e6b2ac26d04f1.tar.xz |
Avoid raising the body exceeded error multiple times. (#9108)
Previously this code generated unreferenced `Deferred` instances which caused "Unhandled Deferreds" errors to appear in error situations.
Diffstat (limited to 'tests/http/federation')
-rw-r--r-- | tests/http/federation/test_matrix_federation_agent.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/http/federation/test_matrix_federation_agent.py b/tests/http/federation/test_matrix_federation_agent.py index 4e51839d0f..686012dd25 100644 --- a/tests/http/federation/test_matrix_federation_agent.py +++ b/tests/http/federation/test_matrix_federation_agent.py @@ -1095,7 +1095,7 @@ class MatrixFederationAgentTests(unittest.TestCase): # Expire both caches and repeat the request self.reactor.pump((10000.0,)) - # Repated the request, this time it should fail if the lookup fails. + # Repeat the request, this time it should fail if the lookup fails. fetch_d = defer.ensureDeferred( self.well_known_resolver.get_well_known(b"testserv") ) @@ -1130,7 +1130,7 @@ class MatrixFederationAgentTests(unittest.TestCase): content=b'{ "m.server": "' + (b"a" * WELL_KNOWN_MAX_SIZE) + b'" }', ) - # The result is sucessful, but disabled delegation. + # The result is successful, but disabled delegation. r = self.successResultOf(fetch_d) self.assertIsNone(r.delegated_server) |