kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 8b3f03416ef1a902fd7b33b7b8e7383d5b2d08ebb4e47dc2565337f583b79d71 |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-11-04 20:34 -06:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-11-05 18:37 +01:00 |
| Parents | edebb7f8a5cc |
1 file changed
modified driver-core/src/test/java/com/datastax/driver/core/ClusterInitTest.java +3 −1
| @@ -170,7 +170,9 @@ | ||
| 170 | 170 | try { |
| 171 | 171 | cluster.init(); |
| 172 | 172 | } finally { |
| 173 | - assertThat(reconnectionPolicy.count.get()).isEqualTo(0); | |
| 173 | + // We expect a nextDelay invocation from the ConvictionPolicy for each host, but that will | |
| 174 | + // not trigger a reconnection. | |
| 175 | + assertThat(reconnectionPolicy.count.get()).isEqualTo(2); | |
| 174 | 176 | for (FakeHost fakeHost : hosts) { |
| 175 | 177 | fakeHost.stop(); |
| 176 | 178 | } |