@@ -744,7 +744,8 @@ public void canUseDirectPath_happyPath() throws IOException {
744744 // verify this info is passed correctly to transport channel
745745 TransportChannel transportChannel = provider .getTransportChannel ();
746746 Truth .assertThat (((GrpcTransportChannel ) transportChannel ).isDirectPath ()).isTrue ();
747- Truth .assertThat (((GrpcTransportChannel ) transportChannel ).getNeedsCallCredentials ()).isFalse ();
747+ Truth .assertThat (((GrpcTransportChannel ) transportChannel ).isCallCredentialsAllowed ())
748+ .isFalse ();
748749 transportChannel .shutdownNow ();
749750 }
750751
@@ -797,7 +798,8 @@ public void canUseDirectPath_happyPathWithBoundToken() throws IOException {
797798 // verify this info is passed correctly to transport channel
798799 TransportChannel transportChannel = provider .getTransportChannel ();
799800 Truth .assertThat (((GrpcTransportChannel ) transportChannel ).isDirectPath ()).isTrue ();
800- Truth .assertThat (((GrpcTransportChannel ) transportChannel ).getNeedsCallCredentials ()).isFalse ();
801+ Truth .assertThat (((GrpcTransportChannel ) transportChannel ).isCallCredentialsAllowed ())
802+ .isFalse ();
801803 transportChannel .shutdownNow ();
802804 }
803805
@@ -823,7 +825,7 @@ public void canUseDirectPath_directPathEnvVarDisabled() throws IOException {
823825 // verify this info is passed correctly to transport channel
824826 TransportChannel transportChannel = provider .getTransportChannel ();
825827 Truth .assertThat (((GrpcTransportChannel ) transportChannel ).isDirectPath ()).isFalse ();
826- Truth .assertThat (((GrpcTransportChannel ) transportChannel ).getNeedsCallCredentials ()).isTrue ();
828+ Truth .assertThat (((GrpcTransportChannel ) transportChannel ).isCallCredentialsAllowed ()).isTrue ();
827829 transportChannel .shutdownNow ();
828830 }
829831
0 commit comments