Skip to content

Commit 5cc7035

Browse files
michaelklishinacogoluegnes
authored andcommitted
Allow for up to 3 addresses resolved for localhost
(cherry picked from commit baead8b)
1 parent 8d73831 commit 5cc7035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/rabbitmq/jms/admin/RMQConnectionFactoryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@ public void firstUriShouldBeAppliedToGlobalSettingsTls() throws Exception {
254254
}
255255

256256
@Test
257-
public void shouldUseSingleAddressWhenSingleUri() throws Exception {
257+
public void shouldUseSingleResolvedAddressWhenSingleUri() throws Exception {
258258
rmqCf.setUri("amqp://localhost:10000");
259259
rmqCf.createConnection("guest", "guest");
260260
assertNotNull(passedInAddressResolver);
261261
List<Address> resolved = passedInAddressResolver.getAddresses();
262-
assertThat(resolved.size(), is(both(greaterThanOrEqualTo(1)).and(lessThanOrEqualTo(2))));
262+
assertThat(resolved.size(), is(both(greaterThanOrEqualTo(1)).and(lessThanOrEqualTo(3))));
263263
// don't check host, as there can be some DNS resolution happening
264264
assertEquals(10000, resolved.get(0).getPort());
265265
}

0 commit comments

Comments
 (0)