@@ -744,7 +744,8 @@ public void canUseDirectPath_happyPath() throws IOException {
744
744
// verify this info is passed correctly to transport channel
745
745
TransportChannel transportChannel = provider .getTransportChannel ();
746
746
Truth .assertThat (((GrpcTransportChannel ) transportChannel ).isDirectPath ()).isTrue ();
747
- Truth .assertThat (((GrpcTransportChannel ) transportChannel ).getNeedsCallCredentials ()).isFalse ();
747
+ Truth .assertThat (((GrpcTransportChannel ) transportChannel ).isCallCredentialsAllowed ())
748
+ .isFalse ();
748
749
transportChannel .shutdownNow ();
749
750
}
750
751
@@ -797,7 +798,8 @@ public void canUseDirectPath_happyPathWithBoundToken() throws IOException {
797
798
// verify this info is passed correctly to transport channel
798
799
TransportChannel transportChannel = provider .getTransportChannel ();
799
800
Truth .assertThat (((GrpcTransportChannel ) transportChannel ).isDirectPath ()).isTrue ();
800
- Truth .assertThat (((GrpcTransportChannel ) transportChannel ).getNeedsCallCredentials ()).isFalse ();
801
+ Truth .assertThat (((GrpcTransportChannel ) transportChannel ).isCallCredentialsAllowed ())
802
+ .isFalse ();
801
803
transportChannel .shutdownNow ();
802
804
}
803
805
@@ -823,7 +825,7 @@ public void canUseDirectPath_directPathEnvVarDisabled() throws IOException {
823
825
// verify this info is passed correctly to transport channel
824
826
TransportChannel transportChannel = provider .getTransportChannel ();
825
827
Truth .assertThat (((GrpcTransportChannel ) transportChannel ).isDirectPath ()).isFalse ();
826
- Truth .assertThat (((GrpcTransportChannel ) transportChannel ).getNeedsCallCredentials ()).isTrue ();
828
+ Truth .assertThat (((GrpcTransportChannel ) transportChannel ).isCallCredentialsAllowed ()).isTrue ();
827
829
transportChannel .shutdownNow ();
828
830
}
829
831
0 commit comments