diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-13 14:25:44 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-18 12:05:10 +0200 |
commit | 9a51bf81a860adb2f53794172d049b614739f14d (patch) | |
tree | 1086585c55c5e8a4ff83afe88e9f7c80796c3bc9 /test/buildtool/serve_api/source_tree_client.test.cpp | |
parent | 05b734f11b7a45a1da5c38fcc1f27780c3fe4354 (diff) | |
download | justbuild-9a51bf81a860adb2f53794172d049b614739f14d.tar.gz |
Make RemoteServeConfig a general struct, not a singleton
...and adjust interfaces.
Diffstat (limited to 'test/buildtool/serve_api/source_tree_client.test.cpp')
-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 604471cb..b5650e9f 100644 --- a/test/buildtool/serve_api/source_tree_client.test.cpp +++ b/test/buildtool/serve_api/source_tree_client.test.cpp @@ -33,10 +33,10 @@ auto const kBazSymId = std::string{"1868f82682c290f0b1db3cacd092727eef1fa57f"}; TEST_CASE("Serve service client: tree-of-commit request", "[serve_api]") { auto config = TestServeConfig::ReadServeConfigFromEnvironment(); REQUIRE(config); - auto const address = config->RemoteAddress(); + REQUIRE(config->remote_address); // Create TLC client - SourceTreeClient st_client(*address); + SourceTreeClient st_client(*config->remote_address); SECTION("Commit in bare checkout") { auto root_id = st_client.ServeCommitTree(kRootCommit, ".", false); |