kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 3fbb08c92aab34e467c2f88e150049788e254529daaa9982612317ce7c53fd6c |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2016-06-28 16:31 -05:00 |
| Committer | Andrew Tolbert <andrew.tolbert@datastax.com> · 2016-06-28 16:31 -05:00 |
| Parents | 8f204f38907d |
5 files changed
modified driver-core/src/test/java/com/datastax/driver/core/policies/CustomRetryPolicyIntegrationTest.java +2 −2
| @@ -88,7 +88,7 @@ | ||
| 88 | 88 | fail("expected an OperationTimedOutException"); |
| 89 | 89 | } catch (OperationTimedOutException e) { |
| 90 | 90 | assertThat(e.getMessage()).isEqualTo( |
| 91 | - String.format("[%s] Timed out waiting for server response", host1.getAddress()) | |
| 91 | + String.format("[%s] Timed out waiting for server response", host1.getSocketAddress()) | |
| 92 | 92 | ); |
| 93 | 93 | } |
| 94 | 94 | assertOnRequestErrorWasCalled(1, OperationTimedOutException.class); |
| @@ -131,7 +131,7 @@ | ||
| 131 | 131 | fail("expected a TransportException"); |
| 132 | 132 | } catch (TransportException e) { |
| 133 | 133 | assertThat(e.getMessage()).isEqualTo( |
| 134 | - String.format("[%s] Connection has been closed", host1.getAddress()) | |
| 134 | + String.format("[%s] Connection has been closed", host1.getSocketAddress()) | |
| 135 | 135 | ); |
| 136 | 136 | } |
| 137 | 137 | assertOnRequestErrorWasCalled(1, TransportException.class); |
modified driver-core/src/test/java/com/datastax/driver/core/policies/DefaultRetryPolicyIntegrationTest.java +3 −3
| @@ -187,9 +187,9 @@ | ||
| 187 | 187 | .hasOnlyElementsOfType(OperationTimedOutException.class) |
| 188 | 188 | .extractingResultOf("getMessage") |
| 189 | 189 | .containsOnlyOnce( |
| 190 | - String.format("[%s] Timed out waiting for server response", host1.getAddress()), | |
| 191 | - String.format("[%s] Timed out waiting for server response", host2.getAddress()), | |
| 192 | - String.format("[%s] Timed out waiting for server response", host3.getAddress()) | |
| 190 | + String.format("[%s] Timed out waiting for server response", host1.getSocketAddress()), | |
| 191 | + String.format("[%s] Timed out waiting for server response", host2.getSocketAddress()), | |
| 192 | + String.format("[%s] Timed out waiting for server response", host3.getSocketAddress()) | |
| 193 | 193 | ); |
| 194 | 194 | } |
| 195 | 195 | assertOnRequestErrorWasCalled(3, OperationTimedOutException.class); |
modified driver-core/src/test/java/com/datastax/driver/core/policies/DowngradingConsistencyRetryPolicyIntegrationTest.java +3 −3
| @@ -383,9 +383,9 @@ | ||
| 383 | 383 | .hasOnlyElementsOfType(OperationTimedOutException.class) |
| 384 | 384 | .extractingResultOf("getMessage") |
| 385 | 385 | .containsOnlyOnce( |
| 386 | - String.format("[%s] Timed out waiting for server response", host1.getAddress()), | |
| 387 | - String.format("[%s] Timed out waiting for server response", host2.getAddress()), | |
| 388 | - String.format("[%s] Timed out waiting for server response", host3.getAddress()) | |
| 386 | + String.format("[%s] Timed out waiting for server response", host1.getSocketAddress()), | |
| 387 | + String.format("[%s] Timed out waiting for server response", host2.getSocketAddress()), | |
| 388 | + String.format("[%s] Timed out waiting for server response", host3.getSocketAddress()) | |
| 389 | 389 | ); |
| 390 | 390 | } |
| 391 | 391 | assertOnRequestErrorWasCalled(3, OperationTimedOutException.class); |
modified driver-core/src/test/java/com/datastax/driver/core/policies/FallthroughRetryPolicyIntegrationTest.java +2 −2
| @@ -96,7 +96,7 @@ | ||
| 96 | 96 | Fail.fail("expected an OperationTimedOutException"); |
| 97 | 97 | } catch (OperationTimedOutException e) { |
| 98 | 98 | assertThat(e.getMessage()).isEqualTo( |
| 99 | - String.format("[%s] Timed out waiting for server response", host1.getAddress()) | |
| 99 | + String.format("[%s] Timed out waiting for server response", host1.getSocketAddress()) | |
| 100 | 100 | ); |
| 101 | 101 | } |
| 102 | 102 | assertOnRequestErrorWasCalled(1, OperationTimedOutException.class); |
| @@ -139,7 +139,7 @@ | ||
| 139 | 139 | Fail.fail("expected a TransportException"); |
| 140 | 140 | } catch (TransportException e) { |
| 141 | 141 | assertThat(e.getMessage()).isEqualTo( |
| 142 | - String.format("[%s] Connection has been closed", host1.getAddress()) | |
| 142 | + String.format("[%s] Connection has been closed", host1.getSocketAddress()) | |
| 143 | 143 | ); |
| 144 | 144 | } |
| 145 | 145 | assertOnRequestErrorWasCalled(1, TransportException.class); |
modified driver-core/src/test/java/com/datastax/driver/core/policies/IdempotenceAwareRetryPolicyIntegrationTest.java +2 −2
| @@ -87,7 +87,7 @@ | ||
| 87 | 87 | fail("expected an OperationTimedOutException"); |
| 88 | 88 | } catch (OperationTimedOutException e) { |
| 89 | 89 | assertThat(e.getMessage()).isEqualTo( |
| 90 | - String.format("[%s] Timed out waiting for server response", host1.getAddress()) | |
| 90 | + String.format("[%s] Timed out waiting for server response", host1.getSocketAddress()) | |
| 91 | 91 | ); |
| 92 | 92 | } |
| 93 | 93 | assertOnRequestErrorWasCalled(1, OperationTimedOutException.class); |
| @@ -179,7 +179,7 @@ | ||
| 179 | 179 | Fail.fail("expected a TransportException"); |
| 180 | 180 | } catch (TransportException e) { |
| 181 | 181 | assertThat(e.getMessage()).isEqualTo( |
| 182 | - String.format("[%s] Connection has been closed", host1.getAddress()) | |
| 182 | + String.format("[%s] Connection has been closed", host1.getSocketAddress()) | |
| 183 | 183 | ); |
| 184 | 184 | } |
| 185 | 185 | assertOnRequestErrorWasCalled(1, TransportException.class); |