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/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