From 045027892ab5e35c6a9984df303c4de6a6b30c14 Mon Sep 17 00:00:00 2001 From: Andy LoPresto Date: Tue, 30 Jun 2020 08:11:21 -0700 Subject: [PATCH] NIFI-7587 This closes #4372. Increased tolerance for non-deterministic unit test. Signed-off-by: Joe Witt --- .../org/apache/nifi/remote/client/PeerSelectorTest.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifi-commons/nifi-site-to-site-client/src/test/groovy/org/apache/nifi/remote/client/PeerSelectorTest.groovy b/nifi-commons/nifi-site-to-site-client/src/test/groovy/org/apache/nifi/remote/client/PeerSelectorTest.groovy index 198dad4d70..3fcae55c90 100644 --- a/nifi-commons/nifi-site-to-site-client/src/test/groovy/org/apache/nifi/remote/client/PeerSelectorTest.groovy +++ b/nifi-commons/nifi-site-to-site-client/src/test/groovy/org/apache/nifi/remote/client/PeerSelectorTest.groovy @@ -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 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