Tribler / tribler

Privacy enhanced BitTorrent client with P2P content discovery
https://www.tribler.org
GNU General Public License v3.0
4.8k stars 444 forks source link

Fix flaky test by expecting both ClientOSError and ServerDisconnectedError when server disconnects #7933

Closed kozlovsky closed 6 months ago

kozlovsky commented 6 months ago

This PR fixes #7725 by expecting ClientOSError in addition to ServerDisconnectedError when aiohttp server disconnects. It looks like there are some internal indeterminism in aiohttp regarding what error will be raised here.