Skip to content

Commit

Permalink
ZOOKEEPER-3028 - fix failing unit tests when runing maven
Browse files Browse the repository at this point in the history
  • Loading branch information
nkalmar committed Feb 18, 2019
1 parent 52d6574 commit 2bd476d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -84,4 +84,4 @@ zookeeper-client/zookeeper-client-c/install-sh
zookeeper-client/zookeeper-client-c/ltmain.sh
zookeeper-client/zookeeper-client-c/missing
zookeeper-server/src/main/java/org/apache/zookeeper/version/Info.java
zookeeper-server/src/test/resources/
zookeeper-server/src/test/resources/data/**/
4 changes: 0 additions & 4 deletions pom.xml
Expand Up @@ -593,10 +593,6 @@
<version>${apache-directory-server.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.apache.directory.jdbm</groupId>
<artifactId>apacheds-jdbm1</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.directory.api</groupId>
<artifactId>api-ldap-schema-data</artifactId>
Expand Down
10 changes: 9 additions & 1 deletion zookeeper-server/pom.xml
Expand Up @@ -156,6 +156,7 @@

<build>
<plugins>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
Expand Down Expand Up @@ -254,6 +255,12 @@
</executions>
</plugin>

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<inherited>true</inherited>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand All @@ -263,11 +270,12 @@
</includes>
<forkCount>${surefire-forkcount}</forkCount>
<reuseForks>false</reuseForks>
<argLine>-Xmx512m -Dtest.junit.threads=${surefire-forkcount} -Dzookeeper.junit.threadid=${surefire.forkNumber}</argLine>
<argLine>-Xmx512m</argLine>
<basedir>${project.basedir}</basedir>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<systemPropertyVariables>
<build.test.dir>${project.build.directory}/surefire</build.test.dir>
<test.data.dir>${project.basedir}/src/test/resources/data</test.data.dir>
<zookeeper.DigestAuthenticationProvider.superDigest>super:D/InIHSb7yEEbrWz8b9l71RjZJU=</zookeeper.DigestAuthenticationProvider.superDigest>
</systemPropertyVariables>
</configuration>
Expand Down

0 comments on commit 2bd476d

Please sign in to comment.