diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-27 17:24:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-27 17:24:46 -0400 |
commit | e00816ad98a1165b67238f9711cb1b0e7135f25f (patch) | |
tree | 3b0135e8c57b2b9082191088237298f7b50615f7 /tests/crypto | |
parent | Convert stats and related calls to async/await (#8192) (diff) | |
download | synapse-e00816ad98a1165b67238f9711cb1b0e7135f25f.tar.xz |
Do not yield on awaitables in tests. (#8193)
Diffstat (limited to 'tests/crypto')
-rw-r--r-- | tests/crypto/test_keyring.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/crypto/test_keyring.py b/tests/crypto/test_keyring.py index 0d4b05304b..d264653e74 100644 --- a/tests/crypto/test_keyring.py +++ b/tests/crypto/test_keyring.py @@ -190,7 +190,7 @@ class KeyringTestCase(unittest.HomeserverTestCase): # should fail immediately on an unsigned object d = _verify_json_for_server(kr, "server9", {}, 0, "test unsigned") - self.failureResultOf(d, SynapseError) + self.get_failure(d, SynapseError) # should succeed on a signed object d = _verify_json_for_server(kr, "server9", json1, 500, "test signed") @@ -221,7 +221,7 @@ class KeyringTestCase(unittest.HomeserverTestCase): # should fail immediately on an unsigned object d = _verify_json_for_server(kr, "server9", {}, 0, "test unsigned") - self.failureResultOf(d, SynapseError) + self.get_failure(d, SynapseError) # should fail on a signed object with a non-zero minimum_valid_until_ms, # as it tries to refetch the keys and fails. |