Imported Upstream version 1.33.1
[platform/upstream/grpc.git] / test / cpp / util / create_test_channel.cc
index bb2e4fa..b255115 100644 (file)
@@ -59,7 +59,7 @@ void AddProdSslType() {
 }
 
 void MaybeSetCustomChannelArgs(grpc::ChannelArguments* args) {
-  if (!FLAGS_grpc_test_use_grpclb_with_child_policy.empty()) {
+  if (FLAGS_grpc_test_use_grpclb_with_child_policy.size() > 0) {
     args->SetString("grpc.service_config",
                     "{\"loadBalancingConfig\":[{\"grpclb\":{\"childPolicy\":[{"
                     "\"" +