diff --git a/Cargo.lock b/Cargo.lock index 462b59f3..4a1382aa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -283,9 +283,9 @@ dependencies = [ [[package]] name = "exponential-backoff" -version = "1.2.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "949eb68d436415e37b7a69c49a9900d5337616b0e420377ccc48038b86261e16" +checksum = "6ffb309d235a642598183aeda8925e871e85dd5a433c2c877e69ff0a960f4c02" dependencies = [ "fastrand", ] diff --git a/shared-test/Cargo.toml b/shared-test/Cargo.toml index eb5b54df..f6751fb1 100644 --- a/shared-test/Cargo.toml +++ b/shared-test/Cargo.toml @@ -7,6 +7,6 @@ edition.workspace = true workspace = true [dependencies] -exponential-backoff = "1" +exponential-backoff = "2" libcnb-test = "=0.23.0" ureq = { version = "2", default-features = false, features = ["tls"] } diff --git a/shared-test/src/lib.rs b/shared-test/src/lib.rs index 445cc3d3..6328ed90 100644 --- a/shared-test/src/lib.rs +++ b/shared-test/src/lib.rs @@ -46,8 +46,8 @@ where match request_fn() { result @ Ok(_) => return result, result @ Err(_) => match backoff_durations.next() { - None => return result, - Some(backoff_duration) => { + None | Some(None) => return result, + Some(Some(backoff_duration)) => { std::thread::sleep(backoff_duration); continue; }