Elffuss BraidHub

kikocis/java-driver public

Fix should_wait_for_each_contact_point_at_most_once for 2.1+.
Changesetc79f03f7223a2e1a8a06e5c65dce9a3e461c8c89ded8f32ec586cda011f6a14f
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-05-27 18:18 -05:00
CommitterAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-05-27 18:19 -05:00
Parentsd9afbf74ecb3

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/ClusterInitTest.java +1 −4
@@ -92,10 +92,7 @@
9292
9393 // We have one live host so 2 successful connections (1 control connection and 1 core connection in the pool).
9494 // The other 5 hosts are unreachable, we should attempt to connect to each of them only once.
95- int coreConnections = cluster.getConfiguration()
96- .getPoolingOptions()
97- .getCoreConnectionsPerHost(HostDistance.LOCAL);
98- verify(socketOptions, times(1 + coreConnections + 5)).getKeepAlive();
95+ verify(socketOptions, times(1 + TestUtils.numberOfLocalCoreConnections(cluster) + 5)).getKeepAlive();
9996 } finally {
10097 if (cluster != null)
10198 cluster.close();