Elffuss BraidHub

kikocis/java-driver public

Add comesUpWithin to node 3 should_refresh_single_connected_host()

Makes test more resilient as node may not have been marked as 'up'
by driver at this point.
Changeset6eff18b25dfa9c4c0a6b7b1996670fd8f67965b1d8ca7256394fc5048b3c87d7
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2014-12-15 13:35 -06:00
CommitterAndrew Tolbert <andrew.tolbert@datastax.com> · 2014-12-15 13:35 -06:00
Parentsb1c77be54e84

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/PoolingOptionsTest.java +1 −1
@@ -63,7 +63,7 @@
6363 .hasState(State.UP)
6464 .isAtDistance(HostDistance.LOCAL);
6565 assertThat(cluster).host(3)
66- .hasState(State.UP)
66+ .comesUpWithin(120, SECONDS)
6767 .isAtDistance(HostDistance.IGNORED);
6868 assertThat(session).hasNoPoolFor(3);
6969