Skip to content

Commit 49f058d

Browse files
committed
Fix test
1 parent a8f696f commit 49f058d

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

okhttp/src/test/java/io/grpc/okhttp/OkHttpClientTransportTest.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -814,29 +814,6 @@ public void perRpcAuthoritySpecified_hostnameVerification_SslSocket_successCase(
814814
shutdownAndVerify();
815815
}
816816

817-
@Test
818-
public void perRpcAuthoritySpecified_hostnameVerification_SslSocket_failureCase()
819-
throws Exception {
820-
OkHttpClientTransport.enablePerRpcAuthorityCheck = true;
821-
try {
822-
startTransport(
823-
DEFAULT_START_STREAM_ID, null, true, null,
824-
(hostname, session) -> false, true);
825-
ClientStream clientStream =
826-
clientTransport.newStream(method, new Metadata(),
827-
CallOptions.DEFAULT.withAuthority("some-authority"), tracers);
828-
assertThat(clientStream).isInstanceOf(FailingClientStream.class);
829-
InsightBuilder insightBuilder = new InsightBuilder();
830-
clientStream.appendTimeoutInsight(insightBuilder);
831-
assertThat(insightBuilder.toString()).contains("error=Status{code=UNAVAILABLE, "
832-
+ "description=HostNameVerifier verification failed for authority 'some-authority', "
833-
+ "cause=null}");
834-
shutdownAndVerify();
835-
} finally {
836-
OkHttpClientTransport.enablePerRpcAuthorityCheck = false;
837-
}
838-
}
839-
840817
@Test
841818
public void perRpcAuthoritySpecified_hostnameVerification_SslSocket_flagDisabled()
842819
throws Exception {

0 commit comments

Comments
 (0)