Elffuss BraidHub

kikocis/java-driver public

Merge pull request #339 from tolbertam/20IntegrationTestFixes

Fix some timing and protocol version issues in Integration Tests.
Changeset2582985ecc1bf825871a93dfd53922d26b443aa2441b68f159e3720e34ba7d65
AuthorOlivier Michallat <olim7t@users.noreply.github.com> · 2015-05-13 14:26 +02:00
CommitterOlivier Michallat <olim7t@users.noreply.github.com> · 2015-05-13 14:26 +02:00
Parents5b2ba50eec1f, d5dbc139ebbe

Browse the files at this changeset

2 files changed

modified driver-core/src/test/java/com/datastax/driver/core/RecommissionedNodeTest.java +2 −0
@@ -110,6 +110,7 @@
110110
111111 // Node 1 should now be DOWN with no reconnection attempt
112112 assertThat(mainCluster).host(1)
113+ .goesDownWithin(10, TimeUnit.SECONDS)
113114 .hasState(DOWN)
114115 .isNotReconnectingFromDown();
115116 }
@@ -133,6 +134,7 @@
133134
134135 // Node 1 should now be DOWN with no reconnection attempt
135136 assertThat(mainCluster).host(1)
137+ .goesDownWithin(10, TimeUnit.SECONDS)
136138 .hasState(DOWN)
137139 .isNotReconnectingFromDown();
138140 }
modified driver-core/src/test/java/com/datastax/driver/core/ReconnectionTest.java +1 −0
@@ -262,6 +262,7 @@
262262 .withReconnectionPolicy(new ConstantReconnectionPolicy(5000))
263263 .withLoadBalancingPolicy(loadBalancingPolicy)
264264 .withSocketOptions(socketOptions)
265+ .withProtocolVersion(TestUtils.getDesiredProtocolVersion())
265266 .build();
266267 // Create two sessions to have multiple pools
267268 cluster.connect();