Skip to content

Commit a0754b7

Browse files
committed
#280 - Increase Cassandra startup timeout to 60 seconds.
1 parent 74978ef commit a0754b7

File tree

1 file changed

+5
-2
lines changed
  • cassandra/util/src/main/java/example/springdata/cassandra/util

1 file changed

+5
-2
lines changed

cassandra/util/src/main/java/example/springdata/cassandra/util/Cassandra.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
*/
1616
package example.springdata.cassandra.util;
1717

18+
import java.util.concurrent.TimeUnit;
19+
1820
import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
1921
import 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
*/
2729
public 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

0 commit comments

Comments
 (0)