From 9bda1c774ccc1e72476ca23cca025df9bd2c2c15 Mon Sep 17 00:00:00 2001 From: Ikhun Um Date: Tue, 14 Jan 2025 15:06:27 +0900 Subject: [PATCH] Fix TrailingDotSniTest not to use TlsProvider --- .../linecorp/armeria/client/TrailingDotSniTest.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/core/src/test/java/com/linecorp/armeria/client/TrailingDotSniTest.java b/core/src/test/java/com/linecorp/armeria/client/TrailingDotSniTest.java index 342400a0227..791d4567966 100644 --- a/core/src/test/java/com/linecorp/armeria/client/TrailingDotSniTest.java +++ b/core/src/test/java/com/linecorp/armeria/client/TrailingDotSniTest.java @@ -26,7 +26,6 @@ import com.linecorp.armeria.common.AggregatedHttpResponse; import com.linecorp.armeria.common.HttpResponse; import com.linecorp.armeria.common.HttpStatus; -import com.linecorp.armeria.common.TlsProvider; import com.linecorp.armeria.internal.testing.MockAddressResolverGroup; import com.linecorp.armeria.server.ServerBuilder; import com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension; @@ -44,12 +43,12 @@ class TrailingDotSniTest { @Override protected void configure(ServerBuilder sb) { sb.https(0); - sb.tlsProvider(TlsProvider.builder() - .keyPair("example.com", ssc.tlsKeyPair()) - .build()); - sb.service("/", (ctx, req) -> { - return HttpResponse.of(200); - }); + sb.tlsSelfSigned(); + sb.virtualHost("example.com") + .tls(ssc.privateKey(), ssc.certificate()) + .service("/", (ctx, req) -> { + return HttpResponse.of(200); + }); } };