Skip to content

Commit 0bf36e5

Browse files
committed
Fix flaky test.
Sometimes this test would catch the message from websockets.server and websockets.client and fail.
1 parent 14d9d40 commit 0bf36e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/asyncio/test_server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ async def test_connection_closed_during_handshake(self):
408408

409409
async def test_junk_handshake(self):
410410
"""Server closes the connection when receiving non-HTTP request from client."""
411-
with self.assertLogs("websockets", logging.ERROR) as logs:
411+
with self.assertLogs("websockets.server", logging.ERROR) as logs:
412412
async with serve(*args) as server:
413413
reader, writer = await asyncio.open_connection(*get_host_port(server))
414414
writer.write(b"HELO relay.invalid\r\n")

0 commit comments

Comments
 (0)