aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-10-20 16:26:10 -0700
committerGravatar GitHub <noreply@github.com>2017-10-20 16:26:10 -0700
commit5f818c58cf95900458d1e0a52451500f8630d3a8 (patch)
tree8de40dfa49fe5c6c0ebb9ae93341a192a037f990
parentd391a7bad628df8b6519d50ec9073af35c07a548 (diff)
parent8c96701cf58d9130ba4efc14cee139223e3e6612 (diff)
Merge pull request #13086 from ctiller/do-what-the-hell-i-ask
Ensure that we respect requested channel args in all cases
-rw-r--r--test/cpp/util/create_test_channel.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/util/create_test_channel.cc b/test/cpp/util/create_test_channel.cc
index 34b6d60d01..4d047473b9 100644
--- a/test/cpp/util/create_test_channel.cc
+++ b/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);
}
}