diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-12 17:49:55 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-18 12:05:10 +0200 |
commit | d08e6f1af5a96818c9e7c2c9e0a6288470489822 (patch) | |
tree | 3d636565e4cd9001566f842eac09bb6601bfb5ba /test/buildtool/serve_api | |
parent | ec447408d17c530ce2023d8148dd34a6d8138535 (diff) | |
download | justbuild-d08e6f1af5a96818c9e7c2c9e0a6288470489822.tar.gz |
Pass RemoteAddress to ConfigurationClient by value
...instead of using singleton calls.
Diffstat (limited to 'test/buildtool/serve_api')
-rw-r--r-- | test/buildtool/serve_api/source_tree_client.test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |