mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 20:25:03 -04:00
Better exception handling
This commit is contained in:
parent
ecea5af491
commit
621e7f37f1
2 changed files with 22 additions and 24 deletions
|
@ -272,7 +272,7 @@ class FederationClientTests(HomeserverTestCase):
|
|||
"""
|
||||
If a connection is made to a client but the client rejects it due to
|
||||
requiring a trailing slash. We need to retry the request with a
|
||||
trailing slash. Workaround for Synapse <=v0.99.2, explained in #3622.
|
||||
trailing slash. Workaround for Synapse <= v0.99.2, explained in #3622.
|
||||
"""
|
||||
d = self.cl.get_json(
|
||||
"testserv:8008", "foo/bar", try_trailing_slash_on_400=True,
|
||||
|
@ -302,9 +302,6 @@ class FederationClientTests(HomeserverTestCase):
|
|||
b'{"errcode":"M_UNRECOGNIZED","error":"Unrecognized request"}'
|
||||
)
|
||||
|
||||
# We should get a 400 response, then try again
|
||||
self.pump()
|
||||
|
||||
# We should get another request wiht a trailing slash
|
||||
self.assertRegex(conn.value(), b"^GET /foo/bar/")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue