File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
cassandra/util/src/main/java/example/springdata/cassandra/util Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1515 */
1616package example .springdata .cassandra .util ;
1717
18+ import java .util .concurrent .TimeUnit ;
19+
1820import org .cassandraunit .utils .EmbeddedCassandraServerHelper ;
1921import org .junit .AssumptionViolatedException ;
2022
2123/**
2224 * {@link org.junit.rules.TestRule} for Cassandra server use. This rule can start a Cassandra instance, reuse a running
2325 * instance or simply require a running Cassandra server (will skip the test if Cassandra is not running).
24- *
26+ *
2527 * @author Mark Paluch
2628 */
2729public class Cassandra extends CassandraResource {
@@ -73,7 +75,8 @@ protected void before() throws Throwable {
7375 }
7476 }
7577
76- EmbeddedCassandraServerHelper .startEmbeddedCassandra ("embedded-cassandra.yaml" );
78+ EmbeddedCassandraServerHelper .startEmbeddedCassandra ("embedded-cassandra.yaml" , "target/embeddedCassandra" ,
79+ TimeUnit .SECONDS .toMillis (60 ));
7780 super .before ();
7881 }
7982
You can’t perform that action at this time.
0 commit comments