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).
This commit is contained in:
Andy Wilkinson
2016-02-18 12:46:31 +00:00
parent 62bc2abac0
commit d3074a086c

View File

@@ -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