Skip to content

Commit 0c015ab

Browse files
committed
Always resolve to localhost in TLS test
New CI has trouble resolving hostname.
1 parent 5fc140a commit 0c015ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/com/rabbitmq/stream/impl/TlsTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import static org.assertj.core.api.Assertions.assertThat;
2121
import static org.assertj.core.api.Assertions.assertThatThrownBy;
2222

23+
import com.rabbitmq.stream.Address;
2324
import com.rabbitmq.stream.ChannelCustomizer;
2425
import com.rabbitmq.stream.ConfirmationHandler;
2526
import com.rabbitmq.stream.Environment;
@@ -277,6 +278,7 @@ void environmentPublisherConsumer() throws Exception {
277278
try (Environment env =
278279
Environment.builder()
279280
.uri("rabbitmq-stream+tls://localhost")
281+
.addressResolver(addr -> new Address("localhost", Client.DEFAULT_TLS_PORT))
280282
.tls()
281283
.sslContext(SslContextBuilder.forClient().trustManager(caCertificate()).build())
282284
.environmentBuilder()

0 commit comments

Comments
 (0)