We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffeb735 commit 08e52eaCopy full SHA for 08e52ea
1 file changed
easy_audio_interfaces/tests/test_network_interfaces.py
@@ -161,12 +161,11 @@ async def test_socket_heartbeat():
161
@pytest.mark.asyncio
162
async def test_socket_error_handling():
163
"""Test error handling in SocketServer and SocketClient"""
164
- invalid_port = 123456 # Invalid port number
165
test_port = BASE_TEST_PORT + 5
166
167
- # Test invalid receiver port
+ # Test invalid receiver port - use a negative port which should always fail
168
with pytest.raises(OSError):
169
- async with SocketServer(port=invalid_port) as receiver:
+ async with SocketServer(port=-1) as receiver:
170
pass
171
172
# Test connection to non-existent receiver
0 commit comments