Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ public static Collection<Object[]> parameters() {
.withNetworkAliases("mongo")
.withExposedPorts(MONGODB_DEFAULT_PORT);
@Rule
public final ToxiproxyContainer toxiproxy = new ToxiproxyContainer(TOXIPROXY_IMAGE).withNetwork(network);
public final ToxiproxyContainer toxiproxy = new ToxiproxyContainer(TOXIPROXY_IMAGE)
.withStartupAttempts(3)
.withNetwork(network);
@Rule
public final DocumentMKBuilderProvider builderProvider = new DocumentMKBuilderProvider();
@Rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public class ElasticReliabilityTest extends ElasticAbstractQueryTest {

@Override
public void before() throws Exception {
toxiproxy = new ToxiproxyContainer(TOXIPROXY_IMAGE).withNetwork(elasticRule.elastic.getNetwork());
toxiproxy = new ToxiproxyContainer(TOXIPROXY_IMAGE)
.withStartupAttempts(3)
.withNetwork(elasticRule.elastic.getNetwork());
toxiproxy.start();
ToxiproxyClient toxiproxyClient = new ToxiproxyClient(toxiproxy.getHost(), toxiproxy.getControlPort());
proxy = toxiproxyClient.createProxy("elastic", "0.0.0.0:8666", "elasticsearch:9200");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public class LeaseUpdateSocketTimeoutIT {

@Rule
public ToxiproxyContainer tp = new ToxiproxyContainer(TOXIPROXY_IMAGE)
.withStartupAttempts(3)
.withNetwork(network);

private Proxy proxy;
Expand Down
Loading