Elffuss BraidHub

kikocis/java-driver public

Use nonQuietClusterCloseOptions in close cluster test.

This test was failing as it only waits up to 1 second for a cluster to close.  This can at last 2 seconds with the changes for JAVA-914 unless you override the default behavior in NettyOptions#onClusterClose.
Changesetedebb7f8a5cc1607c196f2b1758518422a4ec07be4df88d0b69e0be9e3537086
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-11-04 08:40 -06:00
Committerolim7t <omichallat+github@gmail.com> · 2015-11-05 18:37 +01:00
Parentsc0a7681387c1

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/ClusterInitTest.java +2 −0
@@ -47,6 +47,7 @@
4747 import static com.datastax.driver.core.FakeHost.Behavior.THROWING_CONNECT_TIMEOUTS;
4848 import static com.datastax.driver.core.HostDistance.LOCAL;
4949 import static com.datastax.driver.core.TestUtils.nonDebouncingQueryOptions;
50+import static com.datastax.driver.core.TestUtils.nonQuietClusterCloseOptions;
5051
5152 public class ClusterInitTest {
5253 private static final Logger logger = LoggerFactory.getLogger(ClusterInitTest.class);
@@ -189,6 +190,7 @@
189190 public void should_be_able_to_close_cluster_that_never_successfully_connected() throws Exception {
190191 Cluster cluster = Cluster.builder()
191192 .addContactPointsWithPorts(Collections.singleton(new InetSocketAddress("127.0.0.1", 65534)))
193+ .withNettyOptions(nonQuietClusterCloseOptions)
192194 .build();
193195 try {
194196 cluster.connect();