Skip to content

Commit d3074a0

Browse files
committed
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).
1 parent 62bc2ab commit d3074a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-samples/spring-boot-sample-data-cassandra/src/test/java/sample/data/cassandra/SampleCassandraApplicationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
@SpringApplicationConfiguration(SampleCassandraApplication.class)
4343
@IntegrationTest("spring.data.cassandra.port=9142")
4444
@CassandraDataSet(keyspace = "mykeyspace", value = "setup.cql")
45-
@EmbeddedCassandra
45+
@EmbeddedCassandra(timeout = 60000)
4646
public class SampleCassandraApplicationTests {
4747

4848
@ClassRule

0 commit comments

Comments
 (0)