Skip to content

Commit

Permalink
Fix examples and integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideD committed Mar 1, 2022
1 parent 07253ca commit ef3dbb9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<!-- PostgreSQL -->
<property name="javax.persistence.jdbc.url"
value="jdbc:postgresql://localhost/hreact"/>
value="postgresql://localhost/hreact"/>

<!-- Credentials -->
<property name="javax.persistence.jdbc.user"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<!-- PostgreSQL -->
<property name="javax.persistence.jdbc.url"
value="jdbc:postgresql://localhost/hreact"/>
value="postgresql://localhost/hreact"/>

<!-- Credentials -->
<property name="javax.persistence.jdbc.user"
Expand Down Expand Up @@ -48,7 +48,7 @@

<!-- MySQL -->
<property name="javax.persistence.jdbc.url"
value="jdbc:mysql://localhost/hreact"/>
value="mysql://localhost/hreact"/>

<!-- Credentials -->
<property name="javax.persistence.jdbc.user"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private static String dbConnectionUrl(boolean enableDocker) {
// Calling start() will start the container (if not already started)
// It is required to call start() before obtaining the JDBC URL because it will contain a randomized port
postgresql.start();
return postgresql.getJdbcUrl();
return postgresql.getJdbcUrl().replaceAll( "^jdbc:", "" );
}

// When we don't use testcontainers we expect a database on the default url
Expand Down

0 comments on commit ef3dbb9

Please sign in to comment.