Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow additional ClientOSError for expected failure #17899

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion chia/_tests/core/ssl/test_ssl.py
Expand Up @@ -76,7 +76,7 @@ async def test_farmer(self, farmer_one_harvester, self_hostname):
with pytest.raises(aiohttp.ClientConnectorCertificateError):
await establish_connection(farmer_server, self_hostname, ssl_context)
ssl_context = ssl_context_for_client(ca_private_crt_path, ca_private_key_path, pub_crt, pub_key)
with pytest.raises(aiohttp.ServerDisconnectedError):
with pytest.raises((aiohttp.ServerDisconnectedError, aiohttp.ClientOSError)):
await establish_connection(farmer_server, self_hostname, ssl_context)

@pytest.mark.anyio
Expand Down