Skip to content

Commit

Permalink
Increase SQL Timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rwinch committed Sep 25, 2024
1 parent f6f4c86 commit c367e75
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
}

Expand Down

0 comments on commit c367e75

Please sign in to comment.