summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2021-01-15 18:03:33 +0000
committerRichard van der Hoff <richard@matrix.org>2021-01-15 18:03:33 +0000
commitb5dea8702d9b799a15d5b8fb90e82497b8c17f63 (patch)
tree3acfc3100884d18833d38d2ad6556dd8edce9a4b
parentMake chain cover index bg update go faster (#9124) (diff)
downloadsynapse-b5dea8702d9b799a15d5b8fb90e82497b8c17f63.tar.xz
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.
-rw-r--r--tests/rest/client/v2_alpha/test_auth.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/rest/client/v2_alpha/test_auth.py b/tests/rest/client/v2_alpha/test_auth.py
index 3e8661f9b9..a6488a3d29 100644
--- a/tests/rest/client/v2_alpha/test_auth.py
+++ b/tests/rest/client/v2_alpha/test_auth.py
@@ -475,7 +475,9 @@ class UIAuthTests(unittest.HomeserverTestCase):
         session_id = channel.json_body["session"]
 
         # 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
         self.assertSubstring("We were unable to validate", channel.text_body)