Set default authority arg

reviewable/pr14615/r14
David Garcia Quintas 7 years ago
parent 2cbdd85132
commit 6070be4d91
  1. 2
      test/cpp/end2end/end2end_test.cc
  2. 1
      test/cpp/end2end/shutdown_test.cc

@ -290,7 +290,7 @@ class End2endTest : public ::testing::TestWithParam<TestScenario> {
args.SetUserAgentPrefix(user_agent_prefix_);
}
args.SetString(GRPC_ARG_SECONDARY_USER_AGENT_STRING, "end2end_test");
args.SetString(GRPC_ARG_DEFAULT_AUTHORITY, "test-authority");
if (!GetParam().inproc) {
channel_ =
CreateCustomChannel(server_address_.str(), channel_creds, args);

@ -86,6 +86,7 @@ class ShutdownTest : public ::testing::TestWithParam<string> {
ChannelArguments args;
auto channel_creds =
GetCredentialsProvider()->GetChannelCredentials(GetParam(), &args);
args.SetString(GRPC_ARG_DEFAULT_AUTHORITY, "test-authority");
channel_ = CreateCustomChannel(target, channel_creds, args);
stub_ = grpc::testing::EchoTestService::NewStub(channel_);
}

Loading…
Cancel
Save