diff --git a/src/client.rs b/src/client.rs index 6a81434..ff6fb48 100644 --- a/src/client.rs +++ b/src/client.rs @@ -803,7 +803,10 @@ ASYNC_SSH2_TEST_UPLOAD_FILE #[tokio::test] async fn client_can_upload_file() { let client = establish_test_host_connection().await; - let _ = client.upload_file(&env("ASYNC_SSH2_TEST_UPLOAD_FILE"), "/tmp/uploaded").await.unwrap(); + let _ = client + .upload_file(&env("ASYNC_SSH2_TEST_UPLOAD_FILE"), "/tmp/uploaded") + .await + .unwrap(); let result = client.execute("cat /tmp/uploaded").await.unwrap(); assert_eq!(result.stdout, "this is a test file\n"); } diff --git a/tests/sshd-test/Dockerfile b/tests/sshd-test/Dockerfile index cfb7531..896e3cf 100644 --- a/tests/sshd-test/Dockerfile +++ b/tests/sshd-test/Dockerfile @@ -2,7 +2,7 @@ FROM linuxkit/sshd:62036c2a279715d05e8298b9269a0659964f2619-amd64 SHELL ["/bin/bash", "-o", "pipefail", "-c"] -RUN apk add openssh-sftp-server +RUN apk add openssh-sftp-server=9.1_p1-r5 # hadolint ignore=DL3006 RUN echo 'root:root' |chpasswd