Ignore slow test, and try to optimize slow deps during testing

This commit is contained in:
Quentin Gliech
2024-10-28 15:50:21 +01:00
parent 87da8b39ff
commit 25cf5800bd
2 changed files with 10 additions and 7 deletions

View File

@@ -325,14 +325,16 @@ version = "0.6.2"
# A few profile opt-level tweaks to make the test suite run faster
[profile.dev.package]
num-bigint-dig.opt-level = 3
sqlx-macros.opt-level = 3
cranelift-codegen.opt-level = 3
regalloc2.opt-level = 3
argon2.opt-level = 3
pbkdf2.opt-level = 3
bcrypt.opt-level = 3
sha2.opt-level = 3
digest.opt-level = 3
block-buffer.opt-level = 3
cranelift-codegen.opt-level = 3
digest.opt-level = 3
hmac.opt-level = 3
generic-array.opt-level = 3
num-bigint-dig.opt-level = 3
pbkdf2.opt-level = 3
rayon.opt-level = 3
regalloc2.opt-level = 3
sha2.opt-level = 3
sqlx-macros.opt-level = 3

View File

@@ -432,6 +432,7 @@ mod tests {
}
#[test]
#[ignore = "this is particularly slow (20s+ seconds)"]
fn hashing_pbkdf2() {
let mut rng = rand_chacha::ChaChaRng::seed_from_u64(42);
let password = b"hunter2";