Commit 924b8f62 authored by Alexander Schrode's avatar Alexander Schrode Committed by oroulet

fix cert missmatch test

parent b00ddf9f
......@@ -277,7 +277,9 @@ async def test_encrypted_private_key_handling_failure(srv_crypto_one_cert):
async def test_certificate_handling_mismatched_creds(srv_crypto_one_cert):
_, cert = srv_crypto_one_cert
clt = Client(uri_crypto_cert)
with pytest.raises(AttributeError):
with pytest.raises((AttributeError, TimeoutError)):
# either exception can be raise, depending on used python version
# and crypto library version
await clt.set_security(
security_policies.SecurityPolicyBasic256Sha256,
peer_creds['certificate'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment