Skip to content

Commit

Permalink
spring-projects#280 - Increase Cassandra startup timeout to 60 seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Jun 19, 2017
1 parent 74978ef commit a0754b7
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
*/
package example.springdata.cassandra.util;

import java.util.concurrent.TimeUnit;

import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
import org.junit.AssumptionViolatedException;

/**
* {@link org.junit.rules.TestRule} for Cassandra server use. This rule can start a Cassandra instance, reuse a running
* instance or simply require a running Cassandra server (will skip the test if Cassandra is not running).
*
*
* @author Mark Paluch
*/
public class Cassandra extends CassandraResource {
Expand Down Expand Up @@ -73,7 +75,8 @@ protected void before() throws Throwable {
}
}

EmbeddedCassandraServerHelper.startEmbeddedCassandra("embedded-cassandra.yaml");
EmbeddedCassandraServerHelper.startEmbeddedCassandra("embedded-cassandra.yaml", "target/embeddedCassandra",
TimeUnit.SECONDS.toMillis(60));
super.before();
}

Expand Down

0 comments on commit a0754b7

Please sign in to comment.