Increase timeouts in tests that use Cassandra

Closes gh-30163
pull/30505/head
Andy Wilkinson 3 years ago
parent 6eacc07de0
commit bbdef2b026

@ -50,7 +50,8 @@ class CassandraAutoConfigurationIntegrationTests {
"spring.data.cassandra.contact-points:" + cassandra.getHost() + ":"
+ cassandra.getFirstMappedPort(),
"spring.data.cassandra.local-datacenter=datacenter1", "spring.data.cassandra.request.timeout=20s",
"spring.data.cassandra.connection.init-query-timeout=10s");
"spring.data.cassandra.connection.init-query-timeout=20s",
"spring.data.cassandra.request.timeout=20s");
@Test
void whenTheContextIsClosedThenTheDriverConfigLoaderIsClosed() {

@ -55,8 +55,8 @@ class CassandraDataAutoConfigurationIntegrationTests {
"spring.data.cassandra.contact-points:" + cassandra.getHost() + ":"
+ cassandra.getFirstMappedPort(),
"spring.data.cassandra.local-datacenter=datacenter1", "spring.data.cassandra.request.timeout=20s",
"spring.data.cassandra.connection.init-query-timeout=10s",
"spring.data.cassandra.request.timeout=10s")
"spring.data.cassandra.connection.init-query-timeout=20s",
"spring.data.cassandra.request.timeout=20s")
.withInitializer((context) -> AutoConfigurationPackages.register((BeanDefinitionRegistry) context,
City.class.getPackage().getName()));

@ -46,7 +46,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@DataCassandraTest(properties = { "spring.data.cassandra.local-datacenter=datacenter1",
"spring.data.cassandra.schema-action=create-if-not-exists",
"spring.data.cassandra.connection.connect-timeout=20s",
"spring.data.cassandra.connection.init-query-timeout=10s", "spring.data.cassandra.request.timeout=10s" })
"spring.data.cassandra.connection.init-query-timeout=20s", "spring.data.cassandra.request.timeout=20s" })
@Testcontainers(disabledWithoutDocker = true)
class DataCassandraTestIntegrationTests {

@ -45,8 +45,8 @@ import static org.assertj.core.api.Assertions.assertThat;
properties = { "spring.data.cassandra.local-datacenter=datacenter1",
"spring.data.cassandra.schema-action=create-if-not-exists",
"spring.data.cassandra.connection.connect-timeout=20s",
"spring.data.cassandra.connection.init-query-timeout=10s",
"spring.data.cassandra.request.timeout=10s" })
"spring.data.cassandra.connection.init-query-timeout=20s",
"spring.data.cassandra.request.timeout=20s" })
@Testcontainers(disabledWithoutDocker = true)
class DataCassandraTestWithIncludeFilterIntegrationTests {

Loading…
Cancel
Save