diff --git a/test/core/client_channel/lb_policy/xds_override_host_test.cc b/test/core/client_channel/lb_policy/xds_override_host_test.cc index d043cc28c2d..a255d5639fe 100644 --- a/test/core/client_channel/lb_policy/xds_override_host_test.cc +++ b/test/core/client_channel/lb_policy/xds_override_host_test.cc @@ -72,8 +72,8 @@ class XdsOverrideHostTest : public LoadBalancingPolicyTest { cluster_resource->connection_idle_timeout = *connection_idle_timeout; } auto xds_config = MakeRefCounted(); - xds_config->clusters[cluster_name].emplace( - cluster_name, std::move(cluster_resource), nullptr, ""); + xds_config->clusters[std::move(cluster_name)].emplace( + std::move(cluster_resource), nullptr, ""); return xds_config; }