diff --git a/README.md b/README.md index 56ed356..13cc169 100644 --- a/README.md +++ b/README.md @@ -54,5 +54,5 @@ async fn main() -> Result<(), async_ssh2_tokio::Error> { ``` ## Running Tests -1. install docker and docker-compose +1. install docker and docker compose 2. run shell script `./tests/run_unit_tests.sh` diff --git a/tests/async-ssh2-tokio/Dockerfile b/tests/async-ssh2-tokio/Dockerfile index e43b9c9..6c40e02 100644 --- a/tests/async-ssh2-tokio/Dockerfile +++ b/tests/async-ssh2-tokio/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.71.0 +FROM rust:1.80.0 ENV ASYNC_SSH2_TEST_HOST_IP=10.10.10.2 ENV ASYNC_SSH2_TEST_HOST_USER=root diff --git a/tests/run_unit_tests.sh b/tests/run_unit_tests.sh index 8262e2a..f8370fc 100755 --- a/tests/run_unit_tests.sh +++ b/tests/run_unit_tests.sh @@ -7,13 +7,13 @@ cd "${0%/*}" || exit 1 cd .. -docker-compose -f ./tests/docker-compose.yml build --no-cache || exit 1 +docker compose -f ./tests/docker-compose.yml build --no-cache || exit 1 -docker-compose -f ./tests/docker-compose.yml up -d || exit 1 +docker compose -f ./tests/docker-compose.yml up -d || exit 1 -docker-compose -f ./tests/docker-compose.yml exec -T async-ssh2-tokio cargo test -- --test-threads=2 +docker compose -f ./tests/docker-compose.yml exec -T async-ssh2-tokio cargo test -- --test-threads=2 RET=$? -docker-compose -f ./tests/docker-compose.yml down +docker compose -f ./tests/docker-compose.yml down exit $RET