Wait longer for schema agreement in Cassandra tests
After executing a schema-altering query such as CREATE TABLE,
datastax driver waits for a certain time period for "schema
agreement", before refreshing the schema. The default timeout
is 10 seconds, which might be low for schema changes to be
propagated to all the nodes.
@@ -81,6 +81,7 @@ public final class EmbeddedCassandra
.withClusterName("TestCluster")
.addContactPointsWithPorts(ImmutableList.of(
new InetSocketAddress(HOST, PORT)))
+ .withMaxSchemaAgreementWaitSeconds(30)
.build();
CassandraSession session = new NativeCassandraSession(
