NIFI-7587 This closes #4372. Increased tolerance for non-deterministic unit test.

Signed-off-by: Joe Witt <joewitt@apache.org>
This commit is contained in:
Andy LoPresto 2020-06-30 08:11:21 -07:00 committed by Joe Witt
parent c221e4934d
commit 045027892a
No known key found for this signature in database
GPG Key ID: 9093BF854F811A1A
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ class PeerSelectorTest extends GroovyTestCase {
// The actual distribution would be .25 * 4, but because of the penalization, node2 and node4 will each have ~50%
final Map<String, Double> EXPECTED_PERCENTS = ["node1.nifi": 0.0, "node2.nifi": 50.0, "node3.nifi": 0.0, "node4.nifi": 50.0]
assertDistributionPercentages(resultsFrequency, EXPECTED_PERCENTS, NUM_TIMES, 0.01)
assertDistributionPercentages(resultsFrequency, EXPECTED_PERCENTS, NUM_TIMES, 0.05)
}
// Copied legacy tests from TestPeerSelector