[ 
https://issues.apache.org/jira/browse/SUREFIRE-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17860638#comment-17860638
 ] 

Michael Osipov commented on SUREFIRE-1872:
------------------------------------------

Does this still occur? There is nothing related to PRNG in Surefire code.

> unwanted change in random generator?
> ------------------------------------
>
>                 Key: SUREFIRE-1872
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1872
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Bernd Wahlen
>            Priority: Minor
>
> We are using maven-surefire-plugin:3.0.0-M4 with argLine.
> When updating to M5 solr testcases fail with the following message:
> {code:java}
> [ERROR]   
> SearchCitiesImplTest>SolrTestCaseJ4.assertNonBlockingRandomGeneratorAvailable:2918->Assert.assertEquals:117
>  Algorithm specified using test.solr.allowed.securerandom system property 
> does not match actual algorithm expected:<NativePRNG[NonBlocking]> but 
> was:<NativePRNG[]>
> [ERROR]   
> MatchSolrIndexQueryTest>SolrTestCaseJ4.assertNonBlockingRandomGeneratorAvailable:2918->Assert.assertEquals:117
>  Algorithm specified using test.solr.allowed.securerandom system property 
> does not match actual algorithm expected:<NativePRNG[NonBlocking]> but 
> was:<NativePRNG[]>
> [ERROR]   
> SearchUsersQueryTest>SolrTestCaseJ4.assertNonBlockingRandomGeneratorAvailable:2918->Assert.assertEquals:117
>  Algorithm specified using test.solr.allowed.securerandom system property 
> does not match actual algorithm expected:<NativePRNG[NonBlocking]> but 
> was:<NativePRNG[]>
> {code}
> example plugin config from pom:
> setup is jenkins:2.274-centos docker image + maven-3.6.3 + adoptopenjdk-15
> {code:java}
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-plugin</artifactId>
>                 <configuration>
>                     <trimStackTrace>false</trimStackTrace>
>                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
>                     <excludes>
>                         <exclude>**/Test*.java</exclude>
>                         <exclude>**/Abstract*.java</exclude>
>                     </excludes>
>                     <systemProperties>
>                         <property>
>                             <name>java.awt.headless</name>
>                             <value>true</value>
>                         </property>
>                         <property>
>                             <name>java.net.preferIPv4Stack</name>
>                             <value>true</value>
>                         </property>
>                     </systemProperties>
>                     <argLine>-Dfile.encoding=UTF-8 
> -Dtest.solr.allowed.securerandom=NativePRNGNonBlocking</argLine>
>                 </configuration>
>                 <version>3.0.0-M4</version> <!-- rollback M5 solr tests fail 
> because random switches unwantedly to NativePRNG -->
>             </plugin>
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to