Skip to content

Commit b77bf85

Browse files
committed
Fix sporadic unit test failure
1 parent 46636d6 commit b77bf85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ def send_newkeys(self, k, h):
10021002

10031003
with patch('asyncssh.connection.SSHClientConnection.send_newkeys',
10041004
send_newkeys):
1005-
with self.assertRaises(asyncssh.ProtocolError):
1005+
with self.assertRaises((ConnectionError, asyncssh.ProtocolError)):
10061006
await self.connect()
10071007

10081008
@asynctest

0 commit comments

Comments
 (0)