aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/grpclb
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-10-27 08:27:15 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-10-27 08:27:15 -0700
commite127a39f45577fcfba1f1f0faa1d60c516c39908 (patch)
treec25ade2aa3575626a75be577e1ca00b9e5ac27a1 /test/cpp/grpclb
parentcb356b26eaf8cfde85166a7f6a4b3b8b6b52f839 (diff)
Change tests to use channel args instead of fake_resolver query args.
Diffstat (limited to 'test/cpp/grpclb')
-rw-r--r--test/cpp/grpclb/grpclb_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/cpp/grpclb/grpclb_test.cc b/test/cpp/grpclb/grpclb_test.cc
index b6056f9ae4..c67249e4b1 100644
--- a/test/cpp/grpclb/grpclb_test.cc
+++ b/test/cpp/grpclb/grpclb_test.cc
@@ -633,7 +633,9 @@ static test_fixture setup_test_fixture(int lb_server_update_delay_ms) {
gpr_thd_new(&tf.lb_server.tid, fork_lb_server, &tf.lb_server, &options);
char *server_uri;
- gpr_asprintf(&server_uri, "test:%s?lb_policy=grpclb&lb_enabled=1",
+ // The grpclb LB policy will be automatically selected by virtue of
+ // the fact that the returned addresses are balancer addresses.
+ gpr_asprintf(&server_uri, "test:%s?lb_enabled=1",
tf.lb_server.servers_hostport);
setup_client(server_uri, &tf.client);
gpr_free(server_uri);