kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | c79f03f7223a2e1a8a06e5c65dce9a3e461c8c89ded8f32ec586cda011f6a14f |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-05-27 18:18 -05:00 |
| Committer | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-05-27 18:19 -05:00 |
| Parents | d9afbf74ecb3 |
1 file changed
modified driver-core/src/test/java/com/datastax/driver/core/ClusterInitTest.java +1 −4
| @@ -92,10 +92,7 @@ | ||
| 92 | 92 | |
| 93 | 93 | // We have one live host so 2 successful connections (1 control connection and 1 core connection in the pool). |
| 94 | 94 | // 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(); | |
| 99 | 96 | } finally { |
| 100 | 97 | if (cluster != null) |
| 101 | 98 | cluster.close(); |