Skip to content

Commit

Permalink
[test] Fix test execution issue with JDK17 - integration tests (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi authored Feb 8, 2022
1 parent ac37d80 commit 936c33b
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions buildtools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<guava.version>31.0.1-jre</guava.version>
<ant.version>1.10.12</ant.version>
<snakeyaml.version>1.30</snakeyaml.version>
<test.additional.args></test.additional.args>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -169,6 +170,9 @@
<value>org.apache.pulsar.tests.PulsarTestListener,org.apache.pulsar.tests.AnnotationListener,org.apache.pulsar.tests.FailFastNotifier</value>
</property>
</properties>
<argLine>
${test.additional.args}
</argLine>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -238,4 +242,19 @@
</extension>
</extensions>
</build>
<profiles>
<profile>
<id>jdk11</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<properties>
<!-- required for running tests on JDK11+ -->
<test.additional.args>
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED <!--Mockito-->
</test.additional.args>
</properties>
</profile>
</profiles>
</project>
1 change: 1 addition & 0 deletions tests/bc_2_0_0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<configuration>
<argLine>-Xmx2G -XX:MaxDirectMemorySize=8G
-Dio.netty.leakDetectionLevel=advanced
${test.additional.args}
</argLine>
<skipTests>false</skipTests>
<suiteXmlFiles>
Expand Down
1 change: 1 addition & 0 deletions tests/bc_2_0_1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<configuration>
<argLine>-Xmx2G -XX:MaxDirectMemorySize=8G
-Dio.netty.leakDetectionLevel=advanced
${test.additional.args}
</argLine>
<skipTests>false</skipTests>
<suiteXmlFiles>
Expand Down
1 change: 1 addition & 0 deletions tests/bc_2_6_0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
<configuration>
<argLine>-Xmx2G -XX:MaxDirectMemorySize=8G
-Dio.netty.leakDetectionLevel=advanced
${test.additional.args}
</argLine>
<skipTests>false</skipTests>
<suiteXmlFiles>
Expand Down
1 change: 1 addition & 0 deletions tests/integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@
<configuration>
<argLine>-Xmx1G -XX:MaxDirectMemorySize=1G
-Dio.netty.leakDetectionLevel=advanced
${test.additional.args}
</argLine>
<skipTests>false</skipTests>
<suiteXmlFiles>
Expand Down
1 change: 1 addition & 0 deletions tests/pulsar-client-admin-shade-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
<configuration>
<argLine>-Xmx2G -XX:MaxDirectMemorySize=8G
-Dio.netty.leakDetectionLevel=advanced
${test.additional.args}
</argLine>
<skipTests>false</skipTests>
<suiteXmlFiles>
Expand Down
1 change: 1 addition & 0 deletions tests/pulsar-client-all-shade-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
<configuration>
<argLine>-Xmx2G -XX:MaxDirectMemorySize=8G
-Dio.netty.leakDetectionLevel=advanced
${test.additional.args}
</argLine>
<skipTests>false</skipTests>
<suiteXmlFiles>
Expand Down
1 change: 1 addition & 0 deletions tests/pulsar-client-shade-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
<configuration>
<argLine>-Xmx2G -XX:MaxDirectMemorySize=8G
-Dio.netty.leakDetectionLevel=advanced
${test.additional.args}
</argLine>
<skipTests>false</skipTests>
<suiteXmlFiles>
Expand Down

0 comments on commit 936c33b

Please sign in to comment.