Skip to content

Commit

Permalink
update spell
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiafu authored and laglangyue committed Aug 31, 2022
1 parent 383446e commit 83f56d8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public class DMSourceTOConsoleIT extends SparkContainer {
private static final String DATABASE = "SYSDBA";
private static final String TABLE = "e2e_table";
private static GenericContainer<?> DMDB;
private static final int MAX_TRY_INIT = 10;
private static final int MAX_TRY_WAITTIME = 1000;
private static final int MAX_INIT_RETRY = 10;
private static final int MAX_INIT_RETRY_WAIT_TIME = 1000;

@BeforeAll
static void beforeAll() {
Expand All @@ -49,12 +49,12 @@ static void beforeAll() {
Startables.deepStart(Stream.of(DMDB)).join();
log.info("dm container started");
Class.forName(DRIVER_CLASS);
for (int i = 0; i < MAX_TRY_INIT; i++) {
for (int i = 0; i < MAX_INIT_RETRY; i++) {
try {
initializeJdbcTable();
break;
} catch (Exception ignore) {
Thread.sleep(MAX_TRY_WAITTIME);
Thread.sleep(MAX_INIT_RETRY_WAIT_TIME);
}
}
log.info("dm container init success: create table and insert data");
Expand Down

0 comments on commit 83f56d8

Please sign in to comment.