Skip to content

Commit

Permalink
[FLINK-36458] Upgrade testcontainers and use original OceanBaseCECont…
Browse files Browse the repository at this point in the history
…ainer in testing (#144)
  • Loading branch information
whhe authored Oct 23, 2024
1 parent 72f315f commit cc80fc4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 78 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class OceanBaseDatabase extends DatabaseExtension implements OceanBaseIma
.format(ZoneId.systemDefault().getRules().getOffset(Instant.now()));

private static final OceanBaseCEContainer CONTAINER =
new OceanBaseContainer(OCEANBASE_CE_4)
new OceanBaseCEContainer(OCEANBASE_CE_4)
.withPassword("123456")
.withUrlParam("useSSL", "false")
.withUrlParam("serverTimezone", ZONE_OFFSET)
Expand All @@ -56,7 +56,7 @@ public class OceanBaseDatabase extends DatabaseExtension implements OceanBaseIma
"/root/boot/init.d/init.sql")
.waitingFor(
Wait.forLogMessage(".*boot success!.*", 1)
.withStartupTimeout(Duration.ofMinutes(2)))
.withStartupTimeout(Duration.ofMinutes(3)))
.withLogConsumer(new Slf4jLogConsumer(LOG));

private static OceanBaseMetadata metadata;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ under the License.
<junit4.version>4.13.2</junit4.version>
<junit5.version>5.10.1</junit5.version>
<assertj.version>3.24.2</assertj.version>
<testcontainers.version>1.19.8</testcontainers.version>
<testcontainers.version>1.20.1</testcontainers.version>
<mockito.version>3.12.4</mockito.version>

<japicmp.referenceVersion>3.0.0-1.16</japicmp.referenceVersion>
Expand Down

0 comments on commit cc80fc4

Please sign in to comment.