From e4bbf59415e610fc090572aff29cd20cdb9c41f8 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 13 Jun 2022 13:30:13 +0200 Subject: RemoteExecutionConfig: Keep global platform properties ... and cache endpoint address for rebuilding. --- test/buildtool/execution_api/bazel/bazel_network.test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/buildtool/execution_api/bazel/bazel_network.test.cpp') diff --git a/test/buildtool/execution_api/bazel/bazel_network.test.cpp b/test/buildtool/execution_api/bazel/bazel_network.test.cpp index 6a668406..b67013a0 100644 --- a/test/buildtool/execution_api/bazel/bazel_network.test.cpp +++ b/test/buildtool/execution_api/bazel/bazel_network.test.cpp @@ -8,9 +8,9 @@ constexpr std::size_t kLargeSize = GRPC_DEFAULT_MAX_RECV_MESSAGE_LENGTH + 1; TEST_CASE("Bazel network: write/read blobs", "[execution_api]") { - auto const& info = RemoteExecutionConfig::Instance(); + auto const& info = RemoteExecutionConfig::RemoteAddress(); std::string instance_name{"remote-execution"}; - auto network = BazelNetwork{instance_name, info.Host(), info.Port(), {}}; + auto network = BazelNetwork{instance_name, info->host, info->port, {}}; std::string content_foo("foo"); std::string content_bar("bar"); -- cgit v1.2.3