Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions aiosmtpd/tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ def test_reuse_loop(self, temp_event_loop):
@pytest.mark.skipif(in_wsl(), reason="WSL prevents socket collision")
def test_socket_error_dupe(self, plain_controller, client):
contr2 = Controller(
Sink(), hostname=Global.SrvAddr.host, port=Global.SrvAddr.port
Sink(),
hostname=Global.SrvAddr.host,
port=Global.SrvAddr.port,
ready_timeout=0.5,
)
expectedre = r"error while attempting to bind on address"
try:
Expand All @@ -225,7 +228,10 @@ def test_socket_error_dupe(self, plain_controller, client):
@pytest.mark.skipif(in_wsl(), reason="WSL prevents socket collision")
def test_socket_error_default(self):
contr1 = Controller(Sink())
contr2 = Controller(Sink())
contr2 = Controller(
Sink(),
ready_timeout=0.5,
)
expectedre = r"error while attempting to bind on address"
try:
with pytest.raises(socket.error, match=expectedre):
Expand Down
Loading