You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bernd Wahlen (Jira)" <ji...@apache.org> on 2021/01/07 14:42:00 UTC
[jira] [Created] (SUREFIRE-1872) unwanted change in random
generator?
Bernd Wahlen created SUREFIRE-1872:
--------------------------------------
Summary: 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
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.3.4#803005)