diff options
author | gjoranv <gv@verizonmedia.com> | 2020-06-19 13:43:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 13:43:05 +0200 |
commit | 92b73034306ca58f6841f158149bd048bddb374f (patch) | |
tree | ece31f46301d588301e4c47970953eae0af12d9c | |
parent | 561d1c9c20538dd2d6d095616b64aaf124560f4f (diff) | |
parent | 9db08b60ca8117c10f54aa1069c7b9e2c8b0666c (diff) |
Merge pull request #13642 from vespa-engine/hmusum/allow-some-more-deviation
Allow some more deviation
-rw-r--r-- | config/src/test/java/com/yahoo/vespa/config/JRTConnectionPoolTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/src/test/java/com/yahoo/vespa/config/JRTConnectionPoolTest.java b/config/src/test/java/com/yahoo/vespa/config/JRTConnectionPoolTest.java index cc46301e869..6604fe46d3f 100644 --- a/config/src/test/java/com/yahoo/vespa/config/JRTConnectionPoolTest.java +++ b/config/src/test/java/com/yahoo/vespa/config/JRTConnectionPoolTest.java @@ -70,10 +70,10 @@ public class JRTConnectionPoolTest { // Tests that the number of times each connection is used is close to equal private void assertConnectionDistributionIsFair(Map<String, Integer> connectionsUsedPerHost) { - double devianceDueToRandomSourceSelection = 0.14; + double deviationDueToRandomSourceSelection = 0.15; final int size = 1000; - int minHostCount = (int) (size/2 * (1 - devianceDueToRandomSourceSelection)); - int maxHostCount = (int) (size/2 * (1 + devianceDueToRandomSourceSelection)); + int minHostCount = (int) (size/2 * (1 - deviationDueToRandomSourceSelection)); + int maxHostCount = (int) (size/2 * (1 + deviationDueToRandomSourceSelection)); for (Map.Entry<String, Integer> entry : connectionsUsedPerHost.entrySet()) { Integer timesUsed = entry.getValue(); |