File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
examples/example-tls/src/main/java/io/grpc/examples/helloworldtls Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1818
1919import io .grpc .Channel ;
2020import io .grpc .Grpc ;
21- import io .grpc .okhttp .OkHttpChannelBuilder ;
2221import io .grpc .ManagedChannel ;
2322import io .grpc .StatusRuntimeException ;
2423import io .grpc .TlsChannelCredentials ;
Original file line number Diff line number Diff line change @@ -472,7 +472,7 @@ public ClientStream newStream(
472472 peerVerificationStatus = Status .OK ;
473473 } catch (SSLPeerUnverifiedException | CertificateException e ) {
474474 peerVerificationStatus = Status .UNAVAILABLE .withDescription (
475- String .format ("Failure in verifying authority '%s' against peer" ,
475+ String .format ("Failure in verifying authority '%s' against peer during rpc " ,
476476 callOptions .getAuthority ())).withCause (e );
477477 }
478478 peerVerificationResults .put (callOptions .getAuthority (), peerVerificationStatus );
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ public void perRpcAuthorityOverride_doesntMatchCertNames_fails() throws Exceptio
156156 } catch (StatusRuntimeException ex ) {
157157 assertThat (ex .getStatus ().getCode ()).isEqualTo (Status .Code .UNAVAILABLE );
158158 assertThat (ex .getStatus ().getDescription ()).isEqualTo (
159- "Failure in verifying authority 'foo.test.google.in' against peer" );
159+ "Failure in verifying authority 'foo.test.google.in' against peer during rpc " );
160160 assertThat (ex .getStatus ().getCause ()).isInstanceOf (CertificateException .class );
161161 assertThat (ex .getStatus ().getCause ().getMessage ()).isEqualTo (
162162 "No subject alternative DNS name matching foo.test.google.in found." );
You can’t perform that action at this time.
0 commit comments