We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
src_path_large
1 parent 1d18e70 commit 3c30c72Copy full SHA for 3c30c72
tests/unit/scp_test.py
@@ -105,7 +105,12 @@ def large_payload():
105
106
@pytest.fixture
107
def src_path_large(tmp_path, large_payload):
108
- """Return a remote path that is a file larger than 64k B, which is the most libssh can read at once."""
+ """Return a remote path that to a 65537 byte-sized file.
109
+
110
+ Typical single-read chunk size is 64kB in ``libssh`` so
111
+ the test needs a file that would overflow that to trigger
112
+ the read loop.
113
+ """
114
path = tmp_path / 'large.txt'
115
path.write_bytes(large_payload)
116
return path
0 commit comments