Skip to content

Commit

Permalink
[pinpoint-apm#11506] Failed testcase in MSSQL testcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Sep 20, 2024
1 parent 257ec10 commit 32280fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class JtdsConnectionIT {
public static final JdbcDatabaseContainer<?> mssqlserver = newMSSQLServerContainer(logger.getName());

public static JdbcDatabaseContainer<?> newMSSQLServerContainer(String loggerName) {
final MSSQLServerContainer<?> mssqlServerContainer = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2019-latest");
final MSSQLServerContainer<?> mssqlServerContainer = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04");
mssqlServerContainer.acceptLicense();
mssqlServerContainer.withInitScript("sql/init_mssql.sql");
mssqlServerContainer.withPassword(JtdsITConstants.PASSWORD);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class MsSqlServer implements SharedTestLifeCycle {
public Properties beforeAll() {
Assume.assumeTrue("Docker not enabled", DockerClientFactory.instance().isDockerAvailable());

mssqlserver = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2019-latest");
mssqlserver = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04");
mssqlserver.acceptLicense();
mssqlserver.withInitScript("sql/init_mssql.sql");
mssqlserver.withPassword(JtdsITConstants.PASSWORD);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private MSSQLServerContainerFactory() {
}

public static MSSQLServerContainer<?> newMSSQLServerContainer(String loggerName) {
final MSSQLServerContainer<?> mssqlServerContainer = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2017-CU12");
final MSSQLServerContainer<?> mssqlServerContainer = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04");
mssqlServerContainer.acceptLicense();
mssqlServerContainer.withInitScript("sql/init_mssql.sql");

Expand Down

0 comments on commit 32280fd

Please sign in to comment.