Commit de7899fb authored by Andy Wilkinson's avatar Andy Wilkinson

Improve reliability by give Cassandra more time and attempts to start

parent bfc4cad6
...@@ -40,8 +40,8 @@ public class CassandraContainer extends Container { ...@@ -40,8 +40,8 @@ public class CassandraContainer extends Container {
public CassandraContainer() { public CassandraContainer() {
super("cassandra:3.11.1", PORT, super("cassandra:3.11.1", PORT,
(container) -> container.waitingFor(new WaitStrategy(container)) (container) -> container.waitingFor(new WaitStrategy(container))
.withStartupAttempts(3) .withStartupAttempts(5)
.withStartupTimeout(Duration.ofSeconds(60))); .withStartupTimeout(Duration.ofSeconds(120)));
} }
private static final class WaitStrategy extends HostPortWaitStrategy { private static final class WaitStrategy extends HostPortWaitStrategy {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment