Repository: calcite Updated Branches: refs/heads/master 453441cfd -> eb85242e1
Increase timeout for Cassandra daemon startup for CassandraAdapterTest Project: http://git-wip-us.apache.org/repos/asf/calcite/repo Commit: http://git-wip-us.apache.org/repos/asf/calcite/commit/eb85242e Tree: http://git-wip-us.apache.org/repos/asf/calcite/tree/eb85242e Diff: http://git-wip-us.apache.org/repos/asf/calcite/diff/eb85242e Branch: refs/heads/master Commit: eb85242e109edae1a55b4e1e2c4758841b424f67 Parents: 453441c Author: Vladimir Sitnikov <[email protected]> Authored: Wed Sep 12 12:53:46 2018 +0300 Committer: Vladimir Sitnikov <[email protected]> Committed: Wed Sep 12 12:53:46 2018 +0300 ---------------------------------------------------------------------- .../org/apache/calcite/test/CassandraAdapterTest.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/calcite/blob/eb85242e/cassandra/src/test/java/org/apache/calcite/test/CassandraAdapterTest.java ---------------------------------------------------------------------- diff --git a/cassandra/src/test/java/org/apache/calcite/test/CassandraAdapterTest.java b/cassandra/src/test/java/org/apache/calcite/test/CassandraAdapterTest.java index ec67527..7dff0a2 100644 --- a/cassandra/src/test/java/org/apache/calcite/test/CassandraAdapterTest.java +++ b/cassandra/src/test/java/org/apache/calcite/test/CassandraAdapterTest.java @@ -37,6 +37,8 @@ import org.junit.rules.ExternalResource; import org.junit.runner.Description; import org.junit.runners.model.Statement; +import java.util.concurrent.TimeUnit; + import static org.junit.Assume.assumeTrue; /** @@ -96,8 +98,15 @@ public class CassandraAdapterTest { }; } + String configurationFileName = null; // use default one + // Apache Jenkins often fails with + // CassandraAdapterTest Cassandra daemon did not start within timeout (20 sec by default) + long startUpTimeoutMillis = TimeUnit.SECONDS.toMillis(60); + CassandraCQLUnit rule = new CassandraCQLUnit( - new ClassPathCQLDataSet("twissandra.cql")); + new ClassPathCQLDataSet("twissandra.cql"), + configurationFileName, + startUpTimeoutMillis); // This static init is necessary otherwise tests fail with CassandraUnit in IntelliJ (jdk10) // should be called right after constructor
