Ensure etag is a string for GET room_keys/version response (#7691)

This commit is contained in:
Hubert Chathi 2020-06-15 13:42:44 -04:00 committed by GitHub
parent b8ee03caff
commit 2b2344652b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -96,6 +96,7 @@ class E2eRoomKeysHandlerTestCase(unittest.TestCase):
# check we can retrieve it as the current version
res = yield self.handler.get_version_info(self.local_user)
version_etag = res["etag"]
self.assertIsInstance(version_etag, str)
del res["etag"]
self.assertDictEqual(
res,