diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-16 17:30:36 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-19 09:50:37 +0200 |
commit | 616cd734e76b7f4c9666bbaeaa6820fa9980816d (patch) | |
tree | ad9f43d86c3dc88b61c213625c625dbf20f7a167 /test/buildtool/build_engine/target_map/target_map.test.cpp | |
parent | 4e2e6585441cc69b2c2ebc29b9ca95e1804b5053 (diff) | |
download | justbuild-616cd734e76b7f4c9666bbaeaa6820fa9980816d.tar.gz |
Pass RetryConfig instance to ApiBundle
Also store a const ref for usage in setting up a fresh ApiBundle
during target serve.
Diffstat (limited to 'test/buildtool/build_engine/target_map/target_map.test.cpp')
-rw-r--r-- | test/buildtool/build_engine/target_map/target_map.test.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/buildtool/build_engine/target_map/target_map.test.cpp b/test/buildtool/build_engine/target_map/target_map.test.cpp index 4d7cef75..48424bc5 100644 --- a/test/buildtool/build_engine/target_map/target_map.test.cpp +++ b/test/buildtool/build_engine/target_map/target_map.test.cpp @@ -26,6 +26,7 @@ #include "src/buildtool/build_engine/base_maps/targets_file_map.hpp" #include "src/buildtool/build_engine/expression/expression.hpp" #include "src/buildtool/build_engine/target_map/target_map.hpp" +#include "src/buildtool/common/remote/retry_config.hpp" #include "src/buildtool/common/repository_config.hpp" #include "src/buildtool/common/statistics.hpp" #include "src/buildtool/execution_api/common/api_bundle.hpp" @@ -114,6 +115,7 @@ TEST_CASE("simple targets", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -566,6 +568,7 @@ TEST_CASE("configuration deduplication", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -663,6 +666,7 @@ TEST_CASE("generator functions in string arguments", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -772,6 +776,7 @@ TEST_CASE("built-in rules", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -991,6 +996,7 @@ TEST_CASE("target reference", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -1143,6 +1149,7 @@ TEST_CASE("trees", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -1259,6 +1266,7 @@ TEST_CASE("RESULT error reporting", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, @@ -1434,6 +1442,7 @@ TEST_CASE("wrong arguments", "[target_map]") { &local_exec_config, /*repo_config=*/nullptr, &auth, + &RetryConfig::Instance(), &remote_exec_config}; auto serve = ServeApi::Create(*serve_config, &storage, &apis); AnalyseContext ctx{.repo_config = &repo_config, |