mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Improve reliability by give Cassandra more time and attempts to start
This commit is contained in:
parent
bfc4cad692
commit
de7899fba4
@ -40,8 +40,8 @@ public class CassandraContainer extends Container {
|
||||
public CassandraContainer() {
|
||||
super("cassandra:3.11.1", PORT,
|
||||
(container) -> container.waitingFor(new WaitStrategy(container))
|
||||
.withStartupAttempts(3)
|
||||
.withStartupTimeout(Duration.ofSeconds(60)));
|
||||
.withStartupAttempts(5)
|
||||
.withStartupTimeout(Duration.ofSeconds(120)));
|
||||
}
|
||||
|
||||
private static final class WaitStrategy extends HostPortWaitStrategy {
|
||||
|
Loading…
Reference in New Issue
Block a user