You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by jo...@apache.org on 2020/06/30 16:28:08 UTC

[nifi] branch master updated: NIFI-7587 This closes #4372. Increased tolerance for non-deterministic unit test.

This is an automated email from the ASF dual-hosted git repository.

joewitt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/master by this push:
     new 0450278  NIFI-7587 This closes #4372. Increased tolerance for non-deterministic unit test.
0450278 is described below

commit 045027892ab5e35c6a9984df303c4de6a6b30c14
Author: Andy LoPresto <al...@apache.org>
AuthorDate: Tue Jun 30 08:11:21 2020 -0700

    NIFI-7587 This closes #4372. Increased tolerance for non-deterministic unit test.
    
    Signed-off-by: Joe Witt <jo...@apache.org>
---
 .../test/groovy/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 198dad4..3fcae55 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<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