From d3074a086cc05662aaf72c71cac33d82ede98627 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 18 Feb 2016 12:46:31 +0000 Subject: [PATCH] Increase timeout for startup of embedded Cassandra The integration tests for the Spring Data Cassandra sample application fail intermittently, apparently due to Cassandra failing to start within the default timeout period of 10000ms. In attempt to get the tests to pass reliably, this commit increases the timeout to 60000ms (1 minute). --- .../sample/data/cassandra/SampleCassandraApplicationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-samples/spring-boot-sample-data-cassandra/src/test/java/sample/data/cassandra/SampleCassandraApplicationTests.java b/spring-boot-samples/spring-boot-sample-data-cassandra/src/test/java/sample/data/cassandra/SampleCassandraApplicationTests.java index 10c0a83b12..3f81c83720 100644 --- a/spring-boot-samples/spring-boot-sample-data-cassandra/src/test/java/sample/data/cassandra/SampleCassandraApplicationTests.java +++ b/spring-boot-samples/spring-boot-sample-data-cassandra/src/test/java/sample/data/cassandra/SampleCassandraApplicationTests.java @@ -42,7 +42,7 @@ import static org.junit.Assert.assertTrue; @SpringApplicationConfiguration(SampleCassandraApplication.class) @IntegrationTest("spring.data.cassandra.port=9142") @CassandraDataSet(keyspace = "mykeyspace", value = "setup.cql") -@EmbeddedCassandra +@EmbeddedCassandra(timeout = 60000) public class SampleCassandraApplicationTests { @ClassRule