Skip to content

Commit f705df5

Browse files
nickkkcccdkasimovskiy
authored andcommitted
Fix after review
Closes #98
1 parent 105006c commit f705df5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/testcontainers/containers/TarantoolCartridgeContainer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public class TarantoolCartridgeContainer extends GenericContainer<TarantoolCartr
107107
private static final String ENV_TARANTOOL_INSTANCES_FILE = "TARANTOOL_INSTANCES_FILE";
108108
private static final String ENV_TARANTOOL_CLUSTER_COOKIE = "TARANTOOL_CLUSTER_COOKIE";
109109
private static final String healthyCmd = "return require('cartridge').is_healthy()";
110+
private static final int TWO_MINUTES = 120;
110111

111112
private final CartridgeConfigParser instanceFileParser;
112113
private final TarantoolContainerClientHelper clientHelper;
@@ -549,7 +550,7 @@ private void retryingSetupTopology() {
549550
if (!setupTopology()) {
550551
try {
551552
logger().info("Retrying setup topology in 10 seconds");
552-
Thread.sleep(1_000);
553+
Thread.sleep(10_000);
553554
} catch (InterruptedException e) {
554555
throw new RuntimeException(e);
555556
}
@@ -571,12 +572,11 @@ private void bootstrapVshard() {
571572
@Override
572573
protected void containerIsStarted(InspectContainerResponse containerInfo, boolean reused) {
573574
super.containerIsStarted(containerInfo, reused);
574-
int secondsToWait = 120;
575575

576-
waitUntilRouterIsUp(secondsToWait);
576+
waitUntilRouterIsUp(TWO_MINUTES);
577577
retryingSetupTopology();
578578
// wait until Roles are configured
579-
waitUntilCartridgeIsHealthy(secondsToWait);
579+
waitUntilCartridgeIsHealthy(TWO_MINUTES);
580580
bootstrapVshard();
581581

582582
logger().info("Tarantool Cartridge cluster is started");

0 commit comments

Comments
 (0)