diff --git a/spring-session-jdbc/src/integration-test/java/org/springframework/session/jdbc/SqlServerJdbcIndexedSessionRepositoryITests.java b/spring-session-jdbc/src/integration-test/java/org/springframework/session/jdbc/SqlServerJdbcIndexedSessionRepositoryITests.java index 80262f0a2..053c213a7 100644 --- a/spring-session-jdbc/src/integration-test/java/org/springframework/session/jdbc/SqlServerJdbcIndexedSessionRepositoryITests.java +++ b/spring-session-jdbc/src/integration-test/java/org/springframework/session/jdbc/SqlServerJdbcIndexedSessionRepositoryITests.java @@ -26,6 +26,8 @@ import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.context.web.WebAppConfiguration; +import java.time.Duration; + /** * Integration tests for {@link JdbcIndexedSessionRepository} using Microsoft SQL Server * 2017 database. @@ -43,7 +45,7 @@ static class Config extends BaseContainerConfig { @Bean JdbcDatabaseContainer databaseContainer() { JdbcDatabaseContainer databaseContainer = DatabaseContainers.sqlServer(); - databaseContainer.start(); + databaseContainer.withConnectTimeoutSeconds((int) Duration.ofMinutes(8).toSeconds()).start(); return databaseContainer; }