Fix the test breakage introduced by #11435 as a result of concurrent PRs (#11522)

This commit is contained in:
reivilibre 2021-12-07 10:49:39 +00:00 committed by GitHub
parent 2f053f3f82
commit 2d42e586a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Stabilise support for [MSC2918](https://github.com/matrix-org/matrix-doc/blob/main/proposals/2918-refreshtokens.md#msc2918-refresh-tokens) refresh tokens as they have now been merged into the Matrix specification.

View File

@ -703,7 +703,7 @@ class RefreshAuthTests(unittest.HomeserverTestCase):
login_response1 = self.make_request( login_response1 = self.make_request(
"POST", "POST",
"/_matrix/client/r0/login", "/_matrix/client/r0/login",
{"org.matrix.msc2918.refresh_token": True, **body}, {"refresh_token": True, **body},
) )
self.assertEqual(login_response1.code, 200, login_response1.result) self.assertEqual(login_response1.code, 200, login_response1.result)
self.assertApproximates( self.assertApproximates(