lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject [2/2] lucene-solr:branch_6_1: SOLR-9107: When creating a randomized SSL test config, 100% effective odds of using SSL and/or client auth should never be trumped by chance.
Date Wed, 08 Jun 2016 18:44:59 GMT
SOLR-9107: When creating a randomized SSL test config, 100% effective odds of using SSL and/or
client auth should never be trumped by chance.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/eebce4a4
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/eebce4a4
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/eebce4a4

Branch: refs/heads/branch_6_1
Commit: eebce4a406716c1e1f31dd77a8d184d6e910df96
Parents: 3a57bea
Author: Steve Rowe <sarowe@apache.org>
Authored: Wed Jun 8 14:39:01 2016 -0400
Committer: Steve Rowe <sarowe@apache.org>
Committed: Wed Jun 8 14:43:40 2016 -0400

----------------------------------------------------------------------
 .../src/java/org/apache/solr/util/RandomizeSSL.java              | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/eebce4a4/solr/test-framework/src/java/org/apache/solr/util/RandomizeSSL.java
----------------------------------------------------------------------
diff --git a/solr/test-framework/src/java/org/apache/solr/util/RandomizeSSL.java b/solr/test-framework/src/java/org/apache/solr/util/RandomizeSSL.java
index e7336d8..2450dad 100644
--- a/solr/test-framework/src/java/org/apache/solr/util/RandomizeSSL.java
+++ b/solr/test-framework/src/java/org/apache/solr/util/RandomizeSSL.java
@@ -105,9 +105,9 @@ public @interface RandomizeSSL {
       // even if we know SSL is disabled, always consume the same amount of randomness
       // that way all other test behavior should be consistent even if a user adds/removes
@SuppressSSL
       
-      final boolean useSSL = TestUtil.nextInt(LuceneTestCase.random(), 0, 1000) < 
+      final boolean useSSL = TestUtil.nextInt(LuceneTestCase.random(), 0, 999) <
         (int)(1000 * getEffectiveOdds(ssl, LuceneTestCase.TEST_NIGHTLY, LuceneTestCase.RANDOM_MULTIPLIER));
-      final boolean useClientAuth = TestUtil.nextInt(LuceneTestCase.random(), 0, 1000) <

+      final boolean useClientAuth = TestUtil.nextInt(LuceneTestCase.random(), 0, 999) <
         (int)(1000 * getEffectiveOdds(clientAuth, LuceneTestCase.TEST_NIGHTLY, LuceneTestCase.RANDOM_MULTIPLIER));
 
       return new SSLTestConfig(useSSL, useClientAuth);


Mime
View raw message