From 4e2e6585441cc69b2c2ebc29b9ca95e1804b5053 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 16 Jul 2024 17:42:40 +0200 Subject: Pass RetryConfig instance to BazelApi --- test/buildtool/execution_engine/executor/TARGETS | 1 + .../execution_engine/executor/executor_api_remote_bazel.test.cpp | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'test/buildtool/execution_engine/executor') 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 #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: 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: 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: 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: 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: Retrieve output directories", "[executor]") { remote_config->remote_address->host, remote_config->remote_address->port, &*auth_config, + &RetryConfig::Instance(), config}}; }, &*auth_config, -- cgit v1.2.3