kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | d5dbc139ebbea4d2db4a04b8e0ff63038dfc9be9874bdc8b7c4a4b5d706f6d05 |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-05-12 16:42 -05:00 |
| Committer | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-05-12 16:42 -05:00 |
| Parents | 5b2ba50eec1f |
2 files changed
modified driver-core/src/test/java/com/datastax/driver/core/RecommissionedNodeTest.java +2 −0
| @@ -110,6 +110,7 @@ | ||
| 110 | 110 | |
| 111 | 111 | // Node 1 should now be DOWN with no reconnection attempt |
| 112 | 112 | assertThat(mainCluster).host(1) |
| 113 | + .goesDownWithin(10, TimeUnit.SECONDS) | |
| 113 | 114 | .hasState(DOWN) |
| 114 | 115 | .isNotReconnectingFromDown(); |
| 115 | 116 | } |
| @@ -133,6 +134,7 @@ | ||
| 133 | 134 | |
| 134 | 135 | // Node 1 should now be DOWN with no reconnection attempt |
| 135 | 136 | assertThat(mainCluster).host(1) |
| 137 | + .goesDownWithin(10, TimeUnit.SECONDS) | |
| 136 | 138 | .hasState(DOWN) |
| 137 | 139 | .isNotReconnectingFromDown(); |
| 138 | 140 | } |
modified driver-core/src/test/java/com/datastax/driver/core/ReconnectionTest.java +1 −0
| @@ -262,6 +262,7 @@ | ||
| 262 | 262 | .withReconnectionPolicy(new ConstantReconnectionPolicy(5000)) |
| 263 | 263 | .withLoadBalancingPolicy(loadBalancingPolicy) |
| 264 | 264 | .withSocketOptions(socketOptions) |
| 265 | + .withProtocolVersion(TestUtils.getDesiredProtocolVersion()) | |
| 265 | 266 | .build(); |
| 266 | 267 | // Create two sessions to have multiple pools |
| 267 | 268 | cluster.connect(); |