From c32cbb57dfca02a0324a90f3a4e0a2ce6d6abae6 Mon Sep 17 00:00:00 2001
From: Craig Tiller <ctiller@google.com>
Date: Fri, 26 May 2023 10:28:18 -0700
Subject: [PATCH] [memory_usage] Use a named target for the client (#33258)

Allows usage on machines that don't support ipv4.

<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
---
 test/core/memory_usage/memory_usage_test.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/core/memory_usage/memory_usage_test.cc b/test/core/memory_usage/memory_usage_test.cc
index 93ba2b82c24..671539654be 100644
--- a/test/core/memory_usage/memory_usage_test.cc
+++ b/test/core/memory_usage/memory_usage_test.cc
@@ -95,7 +95,7 @@ int RunCallBenchmark(char* root, std::vector<std::string> server_scenario_flags,
       absl::StrCat(root, "/memory_usage_client",
                    gpr_subprocess_binary_extension()),
       "--target",
-      grpc_core::JoinHostPort("127.0.0.1", port),
+      grpc_core::JoinHostPort("localhost", port),
       "--grpc_experiments",
       std::string(grpc_core::ConfigVars::Get().Experiments()),
       absl::StrCat("--warmup=", 10000),
@@ -135,7 +135,7 @@ int RunChannelBenchmark(char* root) {
       absl::StrCat(root, "/memory_usage_callback_client",
                    gpr_subprocess_binary_extension()),
       "--target",
-      grpc_core::JoinHostPort("127.0.0.1", port),
+      grpc_core::JoinHostPort("localhost", port),
       "--nosecure",
       absl::StrCat("--server_pid=", svr.GetPID()),
       absl::StrCat("--size=", absl::GetFlag(FLAGS_size))};