File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ def sftp_session(ssh_client_session):
2323
2424
2525@pytest .fixture (
26- params = (32 , SFTP_MAX_CHUNK + 1 ),
27- ids = ('small-payload' , 'large-payload' ),
26+ params = (32 , SFTP_MAX_CHUNK + 1 , 255 * 1024 + 1 ),
27+ ids = ('small-payload' , 'large-payload' , 'huge-payload' ),
2828)
2929def transmit_payload (request : pytest .FixtureRequest ) -> bytes :
3030 """Generate binary test payloads of assorted sizes.
@@ -34,6 +34,9 @@ def transmit_payload(request: pytest.FixtureRequest) -> bytes:
3434 The choice SFTP_MAX_CHUNK + 1 (32kB + 1B) is meant to be 1B larger than the chunk
3535 size used in :file:`sftp.pyx` to make sure we excercise at least two rounds of
3636 reading/writing.
37+
38+ The Choice T 255kB + 1B is meant to be 1B larger than OpenSSH SFTP server supported
39+ maximum reads and writes of 256 * 1024 - 1024 B per request.
3740 """
3841 payload_len = request .param
3942 random_bytes = [ord (random .choice (string .printable )) for _ in range (payload_len )]
You can’t perform that action at this time.
0 commit comments