File tree Expand file tree Collapse file tree 4 files changed +7
-16
lines changed
src/main/java/org/hibernate/reactive/it/techempower
src/main/java/org/hibernate/reactive/it/verticle Expand file tree Collapse file tree 4 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ tasks.withType( Test ).configureEach {
5858
5959 // We need a to use an instance of PostgreSQL with a specific configuration.
6060 // So, for this particular integration-test module, we default to true unless docker is disabled.
61- systemProperty ' docker' , project. properties[ ' docker' ] ?: true
61+ systemProperty ' docker' , project. hasProperty( ' docker' )
6262 systemProperty ' org.hibernate.reactive.common.InternalStateAssertions.ENFORCE' , ' true'
6363
6464 if ( project. hasProperty( ' includeTests' ) ) {
Original file line number Diff line number Diff line change @@ -36,21 +36,12 @@ public class VertxServer {
3636 private static final Log LOG = make ( Log .class , lookup () );
3737
3838 // These properties are in DatabaseConfiguration in core
39- public static final boolean USE_DOCKER = isDockerEnabled ();
40-
41- // If not specify, default to enable docker
42- private static boolean isDockerEnabled () {
43- String enableDocker = System .getProperty ( "docker" );
44- if ( enableDocker == null ) {
45- return true ;
46- }
47- return Boolean .parseBoolean ( enableDocker );
48- }
39+ public static final boolean USE_DOCKER = Boolean .getBoolean ( "docker" );
4940
5041 public static final String IMAGE_NAME = "postgres:15-bullseye" ;
51- public static final String USERNAME = "benchmarkdbuser " ;
52- public static final String PASSWORD = "benchmarkdbpass " ;
53- public static final String DB_NAME = "hello_world " ;
42+ public static final String USERNAME = "hreact " ;
43+ public static final String PASSWORD = "hreact " ;
44+ public static final String DB_NAME = "hreact " ;
5445
5546 public static final int VERTICLE_INSTANCES = 10 ;
5647
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ tasks.withType( Test ).configureEach {
5555 displayGranularity = 1
5656 events = [' PASSED' , ' FAILED' , ' SKIPPED' ]
5757 }
58- systemProperty ' docker' , project. hasProperty( ' docker' ) ? ' true ' : ' false '
58+ systemProperty ' docker' , project. hasProperty( ' docker' )
5959 systemProperty ' org.hibernate.reactive.common.InternalStateAssertions.ENFORCE' , ' true'
6060
6161 if ( project. hasProperty( ' includeTests' ) ) {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public class VertxServer {
3434 private static final Log LOG = make ( Log .class , lookup () );
3535
3636 // These properties are in DatabaseConfiguration in core
37- public static final boolean USE_DOCKER = true ;
37+ public static final boolean USE_DOCKER = Boolean . getBoolean ( "docker" ) ;
3838
3939 public static final String IMAGE_NAME = "postgres:15.2" ;
4040 public static final String USERNAME = "hreact" ;
You can’t perform that action at this time.
0 commit comments