diff options
author | Mike Salvatore <mike.s.salvatore@gmail.com> | 2022-08-31 13:50:29 -0400 |
---|---|---|
committer | Mike Salvatore <mike.s.salvatore@gmail.com> | 2023-03-02 13:30:24 -0500 |
commit | 92515a6c54f6a5767b03c8ed4af88773c2922038 (patch) | |
tree | 84209548b09631d25563ae318f2e33e1139a6417 /tests | |
parent | 41a5ee82eaa24499d5720fcedf3ccef04ab6fe4b (diff) |
Use a lambda for _mock_set_remote_channel()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_client.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_client.py b/tests/test_client.py index 01ae2036..a991478a 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -564,13 +564,10 @@ class SSHClientTest(ClientTest): auth_timeout=0.5, ) - def _mock_set_remote_channel(self, chainid, init_window, max_packet_size): - time.sleep(100) - @patch.object( paramiko.Channel, "_set_remote_channel", - _mock_set_remote_channel + lambda *args, **kwargs: time.sleep(100) ) def test_channel_timeout(self): """ |