Elffuss BraidHub

kikocis/java-driver public

Consider nextDelayMs() call by ConvictionPolicy in test.
Changeset8b3f03416ef1a902fd7b33b7b8e7383d5b2d08ebb4e47dc2565337f583b79d71
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-11-04 20:34 -06:00
Committerolim7t <omichallat+github@gmail.com> · 2015-11-05 18:37 +01:00
Parentsedebb7f8a5cc

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/ClusterInitTest.java +3 −1
@@ -170,7 +170,9 @@
170170 try {
171171 cluster.init();
172172 } 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);
174176 for (FakeHost fakeHost : hosts) {
175177 fakeHost.stop();
176178 }