From d08e6f1af5a96818c9e7c2c9e0a6288470489822 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 12 Jun 2024 17:49:55 +0200 Subject: Pass RemoteAddress to ConfigurationClient by value ...instead of using singleton calls. --- test/buildtool/serve_api/source_tree_client.test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/buildtool/serve_api/source_tree_client.test.cpp') diff --git a/test/buildtool/serve_api/source_tree_client.test.cpp b/test/buildtool/serve_api/source_tree_client.test.cpp index 63f73155..3de6e864 100644 --- a/test/buildtool/serve_api/source_tree_client.test.cpp +++ b/test/buildtool/serve_api/source_tree_client.test.cpp @@ -30,10 +30,10 @@ auto const kRootSymId = std::string{"18770dacfe14c15d88450c21c16668e13ab0e7f9"}; auto const kBazSymId = std::string{"1868f82682c290f0b1db3cacd092727eef1fa57f"}; TEST_CASE("Serve service client: tree-of-commit request", "[serve_api]") { - auto const& info = RemoteServeConfig::Instance().RemoteAddress(); + auto const address = RemoteServeConfig::Instance().RemoteAddress(); // Create TLC client - SourceTreeClient st_client(info->host, info->port); + SourceTreeClient st_client(*address); SECTION("Commit in bare checkout") { auto root_id = st_client.ServeCommitTree(kRootCommit, ".", false); -- cgit v1.2.3