Increase Cassandra embedded server start up timeout

To try to make tests less prone to false positives.
This commit is contained in:
Nikolay Martynov 2018-06-21 12:00:26 -04:00
parent 677203961d
commit beb91446c7
1 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,13 @@ import org.cassandraunit.utils.EmbeddedCassandraServerHelper
class CassandraClientTest extends AgentTestRunner {
def setupSpec() {
EmbeddedCassandraServerHelper.startEmbeddedCassandra(40000L)
/*
This timeout seems excessive but we've seen tests fail with timeout of 40s.
TODO: if we continue to see failures we may want to consider using 'real' Cassandra
started in container like we do for memcached. Note: this will complicate things because
tests would have to assume they run under shared Cassandra and act accordingly.
*/
EmbeddedCassandraServerHelper.startEmbeddedCassandra(120000L)
}
def cleanupSpec() {