Skip to content

Commit

Permalink
Disabling reuse of testcontainer db
Browse files Browse the repository at this point in the history
  • Loading branch information
souravroy committed Feb 4, 2024
1 parent a353b39 commit 7c673c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public class MySQLContainerConfiguration {

private static final MySQLContainer mySQLContainer = (MySQLContainer) new MySQLContainer("mysql:8.2")
.withDatabaseName("sakila")
.withUsername("root")
.withUsername("root");
//.withPassword("mysql")
.withReuse(true);
//.withReuse(true);

static {
mySQLContainer.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public class PostgreSQLContainerConfiguration {
private static final PostgreSQLContainer testPostgres = (PostgreSQLContainer) new PostgreSQLContainer("postgres:15.2-alpine")
.withDatabaseName("postgres")
.withUsername("postgres")
.withPassword("postgres")
.withReuse(true);
.withPassword("postgres");
//.withReuse(true);

static {
testPostgres.start();
Expand Down

0 comments on commit 7c673c0

Please sign in to comment.