From af61a1f018f67dd5bcbd6e9697ffea82953d3bad Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Wed, 7 Feb 2024 11:39:00 +0100 Subject: [PATCH] Scale flex to proc count, eg on my 24 core machine it fluctuates between 24 and 25 --- tests/connect/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/connect/src/main.rs b/tests/connect/src/main.rs index 7766e28..a38859b 100644 --- a/tests/connect/src/main.rs +++ b/tests/connect/src/main.rs @@ -57,7 +57,7 @@ fn main() { .parse() .unwrap(); - let max = proc_count + 5; + let max = proc_count + (proc_count as f32 * 0.05).floor() as usize; for test in ["reuses_connection", "async_reuses_connection"] { assert!(