Skip to content

Commit

Permalink
Skip stress tests on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesagnew committed Jul 5, 2017
1 parent c1d0608 commit d3fa442
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions hapi-fhir-jpaserver-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,9 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkCount>1</forkCount>
<excludes>
<exclude>**/stresstest/*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
Expand All @@ -642,6 +645,9 @@
<configuration>
<forkCount>2</forkCount>
<reuseForks>true</reuseForks>
<excludes>
<exclude>**/stresstest/*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Note: Tests in this package are not executed by Travis, because travis
just gets mad that the build is taking too long. So make sure to run them
locally!

A normal build (mvn install) will run them.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ca.uhn.fhir.jpa.provider.dstu3;
package ca.uhn.fhir.jpa.stresstest;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
Expand All @@ -17,6 +17,7 @@

import com.google.common.collect.Lists;

import ca.uhn.fhir.jpa.provider.dstu3.BaseResourceProviderDstu3Test;
import ca.uhn.fhir.rest.server.interceptor.RequestValidatingInterceptor;
import ca.uhn.fhir.util.TestUtil;

Expand Down Expand Up @@ -108,6 +109,10 @@ public class BaseTask extends Thread {
protected Throwable myError;
protected int myTaskCount = 0;

public BaseTask() {
setDaemon(true);
}

public Throwable getError() {
return myError;
}
Expand Down

0 comments on commit d3fa442

Please sign in to comment.