Elffuss BraidHub

kikocis/java-driver public

Fix bug in test where only 1 node was used as a contact point.
Changeset9c25c03761338c57c562e709d0b07a2c2b440e10aa5f3e6f5fe11cb6477e8996
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-10-30 16:07 -05:00
CommitterAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-10-30 16:07 -05:00
Parentse5384926e4bb

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/ClusterInitTest.java +1 −1
@@ -158,7 +158,7 @@
158158 // Both contact points time out so we're sure we'll try both of them and init will never complete.
159159 List<FakeHost> hosts = Lists.newArrayList(
160160 new FakeHost(CCMBridge.ipOfNode(0), 9042, THROWING_CONNECT_TIMEOUTS),
161- new FakeHost(CCMBridge.ipOfNode(0), 9042, THROWING_CONNECT_TIMEOUTS));
161+ new FakeHost(CCMBridge.ipOfNode(1), 9042, THROWING_CONNECT_TIMEOUTS));
162162 // Use a low reconnection interval and keep the default connect timeout (5 seconds). So if a reconnection was scheduled,
163163 // we would see a call to the reconnection policy.
164164 CountingReconnectionPolicy reconnectionPolicy = new CountingReconnectionPolicy(new ConstantReconnectionPolicy(100));