Skip to content

Commit 574face

Browse files
authored
Updated CI compression test (#239)
1 parent 7e281ca commit 574face

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/integration_tests/test_channel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from ssh2.session import Session
2525
from ssh2.channel import Channel
2626
from ssh2.exceptions import SocketSendError
27-
from ssh2.session import LIBSSH2_METHOD_COMP_CS, LIBSSH2_FLAG_COMPRESS
27+
from ssh2.session import LIBSSH2_METHOD_COMP_CS, LIBSSH2_METHOD_COMP_SC, LIBSSH2_FLAG_COMPRESS
2828

2929
from .base_test import SSH2TestCase
3030

@@ -222,6 +222,8 @@ def test_execute_with_session_compression(self):
222222
session.flag(LIBSSH2_FLAG_COMPRESS)
223223
algs = session.supported_algs(LIBSSH2_METHOD_COMP_CS)
224224
self.assertTrue('zlib' in algs)
225+
algs = session.supported_algs(LIBSSH2_METHOD_COMP_SC)
226+
self.assertTrue('zlib' in algs)
225227
session.handshake(sock)
226228
session.userauth_publickey_fromfile(
227229
self.user, self.user_key)

0 commit comments

Comments
 (0)