diff --git a/Cargo.lock b/Cargo.lock index 1fe1ffe..1f5781b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4067,9 +4067,9 @@ dependencies = [ [[package]] name = "spin" -version = "0.9.8" +version = "0.9.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +checksum = "3763264f6b73151db08c50ff20d7d8a0b8796e021cdea7ceedad07b80155fa0e" [[package]] name = "spki" diff --git a/hyperdb-api/src/pool.rs b/hyperdb-api/src/pool.rs index 17cc82b..533a1f4 100644 --- a/hyperdb-api/src/pool.rs +++ b/hyperdb-api/src/pool.rs @@ -1223,9 +1223,14 @@ mod tests { assert_eq!(config.idle_timeout, None); assert_eq!(config.min_idle, None); + let password: String = { + use rand::RngExt; + rand::rng().random_range(0..1_000_000).to_string() + }; + let tuned = SyncPoolConfig::new("e", "d") .create_mode(CreateMode::CreateIfNotExists) - .auth("u", "p") + .auth("u", password) .max_size(4) .recycle(SyncRecycleStrategy::Ping) .wait_timeout(Some(Duration::from_millis(500)))