From 68abdfab9e15870a6b47b7bf3ddf087310018f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= Date: Mon, 15 Aug 2022 17:05:41 -0400 Subject: [PATCH] fix: Make tests of binomial result more strict --- config/tests/config_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/tests/config_tests.rs b/config/tests/config_tests.rs index 42e6ff1d7..368323e8d 100644 --- a/config/tests/config_tests.rs +++ b/config/tests/config_tests.rs @@ -45,8 +45,8 @@ fn leader_election_rotates_through_all() { .entry(leader_stepping_by_2) .or_insert(0) += 1; } - assert!(leader_counts.values().all(|v| *v > 1)); - assert!(leader_counts_stepping_by_2.values().all(|v| *v > 1)); + assert!(leader_counts.values().all(|v| *v > 20),); + assert!(leader_counts_stepping_by_2.values().all(|v| *v > 20),); } #[test]