Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
fix: Make tests of binomial result more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Aug 15, 2022
1 parent c727ff8 commit 68abdfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/tests/config_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 68abdfa

Please sign in to comment.