From e8dafe2061173c4b4420104bbecabf8b704f610b Mon Sep 17 00:00:00 2001 From: Francesco_Cina Date: Wed, 27 Sep 2023 14:58:38 +0200 Subject: [PATCH] bump to 2.12.1 --- Cargo.lock | 24 ++++++++++++------------ Cargo.toml | 2 +- test.sh | 6 +++++- tests/integration_test.rs | 2 +- 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 693f178..ed56876 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,9 +10,12 @@ checksum = "62f447d68cfa5a9ab0c1c862a703da2a65b5ed1b7ce1153c9eb0169506d56019" [[package]] name = "cc" -version = "1.0.79" +version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" +checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" +dependencies = [ + "libc", +] [[package]] name = "cfg-if" @@ -62,9 +65,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4" +checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" dependencies = [ "cfg-if", "libc", @@ -79,18 +82,15 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.141" +version = "0.2.148" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3304a64d199bb964be99741b7a14d26972741915b3649639149b2479bb46f4b5" +checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b" [[package]] name = "log" -version = "0.4.17" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" -dependencies = [ - "cfg-if", -] +checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "port_check" @@ -142,7 +142,7 @@ checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde" [[package]] name = "wait" -version = "2.12.0" +version = "2.12.1" dependencies = [ "atomic-counter", "env_logger", diff --git a/Cargo.toml b/Cargo.toml index 8466cd0..9c040df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wait" -version = "2.12.0" +version = "2.12.1" authors = ["ufoscout "] edition = "2021" diff --git a/test.sh b/test.sh index 3deec67..a5a5739 100755 --- a/test.sh +++ b/test.sh @@ -2,10 +2,14 @@ docker build -t wait:test -f test.Dockerfile . && docker run --rm wait:test -export WAIT_HOSTS=localhost:4748 +#export WAIT_HOSTS=localhost:4748 #export WAIT_PATHS=./target/one export WAIT_TIMEOUT=10 export WAIT_BEFORE=1 export WAIT_AFTER=2 ./target/x86_64-unknown-linux-musl/release/wait && echo 'DOOOOOOONEEEEEE' + +export WAIT_COMMAND="echo 'DOOOOOOONEEEEEE WITH WAIT_COMMAND (i.e. does not requrie a shell)'" + +./target/x86_64-unknown-linux-musl/release/wait diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 35c8269..0620fb1 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -88,7 +88,7 @@ fn should_sleep_the_specified_time_between_path_checks() { &mut on_timeout, ); let elapsed = millis_elapsed(start); - assert!(elapsed >= 2001); + assert!(elapsed >= 2000); assert!(elapsed < 3000); }