mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix test failure due to bad merge
0dd2649c1
(#9112) changed the signature of `auth_via_oidc`. Meanwhile,26d10331e
(#9091) introduced a new test which relied on the old signature of `auth_via_oidc`. The two branches were never tested together until they landed in develop.
This commit is contained in:
parent
350d9923cd
commit
b5dea8702d
@ -475,7 +475,9 @@ class UIAuthTests(unittest.HomeserverTestCase):
|
|||||||
session_id = channel.json_body["session"]
|
session_id = channel.json_body["session"]
|
||||||
|
|
||||||
# do the OIDC auth, but auth as the wrong user
|
# do the OIDC auth, but auth as the wrong user
|
||||||
channel = self.helper.auth_via_oidc("wrong_user", ui_auth_session_id=session_id)
|
channel = self.helper.auth_via_oidc(
|
||||||
|
{"sub": "wrong_user"}, ui_auth_session_id=session_id
|
||||||
|
)
|
||||||
|
|
||||||
# that should return a failure message
|
# that should return a failure message
|
||||||
self.assertSubstring("We were unable to validate", channel.text_body)
|
self.assertSubstring("We were unable to validate", channel.text_body)
|
||||||
|
Loading…
Reference in New Issue
Block a user