Merge pull request #13086 from ctiller/do-what-the-hell-i-ask

Ensure that we respect requested channel args in all cases
pull/11016/merge
Craig Tiller 7 years ago committed by GitHub
commit 5f818c58cf
  1. 4
      test/cpp/util/create_test_channel.cc

@ -74,7 +74,7 @@ std::shared_ptr<Channel> CreateTestChannel(
ChannelArguments channel_args(args);
std::shared_ptr<ChannelCredentials> channel_creds;
if (cred_type.empty()) {
return CreateChannel(server, InsecureChannelCredentials());
return CreateCustomChannel(server, InsecureChannelCredentials(), args);
} else if (cred_type == testing::kTlsCredentialsType) { // cred_type == "ssl"
if (use_prod_roots) {
gpr_once_init(&g_once_init_add_prod_ssl_provider, &AddProdSslType);
@ -101,7 +101,7 @@ std::shared_ptr<Channel> CreateTestChannel(
cred_type, &channel_args);
GPR_ASSERT(channel_creds != nullptr);
return CreateChannel(server, channel_creds);
return CreateCustomChannel(server, channel_creds, args);
}
}

Loading…
Cancel
Save