Skip to content

Commit

Permalink
Reuse the DB containers bootstrapped by Testcontainers #477
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmihalcea committed Aug 15, 2022
1 parent 00ad3ac commit 7a39b1f
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -59,6 +59,7 @@ public JdbcDatabaseContainer getContainer() {

public void initContainer(String username, String password) {
container = (JdbcDatabaseContainer) newJdbcDatabaseContainer()
.withReuse(true)
.withEnv(Collections.singletonMap("ACCEPT_EULA", "Y"));
if(supportsDatabaseName()) {
container.withDatabaseName("high-performance-java-persistence");
Expand Down

0 comments on commit 7a39b1f

Please sign in to comment.