diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-16 17:42:40 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-19 09:50:37 +0200 |
commit | 4e2e6585441cc69b2c2ebc29b9ca95e1804b5053 (patch) | |
tree | 67a093af0987a6347a50a0d04cbd6c382ca70957 /test/buildtool/execution_engine/executor | |
parent | f2af767908e42013664e30ec40c431c41a6895c1 (diff) | |
download | justbuild-4e2e6585441cc69b2c2ebc29b9ca95e1804b5053.tar.gz |
Pass RetryConfig instance to BazelApi
Diffstat (limited to 'test/buildtool/execution_engine/executor')
-rw-r--r-- | test/buildtool/execution_engine/executor/TARGETS | 1 | ||||
-rwxr-xr-x | test/buildtool/execution_engine/executor/executor_api_remote_bazel.test.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/buildtool/execution_engine/executor/TARGETS b/test/buildtool/execution_engine/executor/TARGETS index ab5c197a..3ac12f80 100644 --- a/test/buildtool/execution_engine/executor/TARGETS +++ b/test/buildtool/execution_engine/executor/TARGETS @@ -69,6 +69,7 @@ [ "executor_api_tests" , ["@", "src", "src/buildtool/common", "common"] , ["@", "src", "src/buildtool/common", "config"] + , ["@", "src", "src/buildtool/common/remote", "retry_config"] , ["@", "src", "src/buildtool/execution_api/remote", "bazel"] , ["@", "src", "src/buildtool/execution_api/remote", "config"] , ["@", "src", "src/buildtool/execution_engine/executor", "executor"] diff --git a/test/buildtool/execution_engine/executor/executor_api_remote_bazel.test.cpp b/test/buildtool/execution_engine/executor/executor_api_remote_bazel.test.cpp index 26054283..424745de 100755 --- a/test/buildtool/execution_engine/executor/executor_api_remote_bazel.test.cpp +++ b/test/buildtool/execution_engine/executor/executor_api_remote_bazel.test.cpp @@ -15,6 +15,7 @@ #include <optional> #include "catch2/catch_test_macros.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/remote/bazel/bazel_api.hpp" @@ -41,6 +42,7 @@ TEST_CASE("Executor<BazelApi>: Upload blob", "[executor]") { remote_config->remote_address->host, remote_config->remote_address->port, &*auth_config, + &RetryConfig::Instance(), config}}; }); } @@ -69,6 +71,7 @@ TEST_CASE("Executor<BazelApi>: Compile hello world", "[executor]") { remote_config->remote_address->host, remote_config->remote_address->port, &*auth_config, + &RetryConfig::Instance(), config}}; }, &*auth_config, @@ -99,6 +102,7 @@ TEST_CASE("Executor<BazelApi>: Compile greeter", "[executor]") { remote_config->remote_address->host, remote_config->remote_address->port, &*auth_config, + &RetryConfig::Instance(), config}}; }, &*auth_config, @@ -129,6 +133,7 @@ TEST_CASE("Executor<BazelApi>: Upload and download trees", "[executor]") { remote_config->remote_address->host, remote_config->remote_address->port, &*auth_config, + &RetryConfig::Instance(), config}}; }, &*auth_config, @@ -159,6 +164,7 @@ TEST_CASE("Executor<BazelApi>: Retrieve output directories", "[executor]") { remote_config->remote_address->host, remote_config->remote_address->port, &*auth_config, + &RetryConfig::Instance(), config}}; }, &*auth_config, |