summaryrefslogtreecommitdiff
path: root/test/utils/remote_execution/bazel_action_creator.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-17 16:14:12 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-19 09:50:37 +0200
commitc8394c2ffc3688356cf985d46e8ce56d72050f6a (patch)
tree2a5deb6ed40f3e8daca90c02711cbc3aba3f548c /test/utils/remote_execution/bazel_action_creator.hpp
parent31b782119138859c29ac8ff54bcfe19aa00fca42 (diff)
downloadjustbuild-c8394c2ffc3688356cf985d46e8ce56d72050f6a.tar.gz
Remove the RetryConfig singleton
...and replace it with instances created early via a builder pattern.
Diffstat (limited to 'test/utils/remote_execution/bazel_action_creator.hpp')
-rw-r--r--test/utils/remote_execution/bazel_action_creator.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/utils/remote_execution/bazel_action_creator.hpp b/test/utils/remote_execution/bazel_action_creator.hpp
index 4a7be08b..d915cda1 100644
--- a/test/utils/remote_execution/bazel_action_creator.hpp
+++ b/test/utils/remote_execution/bazel_action_creator.hpp
@@ -93,10 +93,12 @@
return nullptr;
}
+ RetryConfig retry_config{}; // default retry config
+
BazelCasClient cas_client(remote_config->remote_address->host,
remote_config->remote_address->port,
&*auth_config,
- &RetryConfig::Instance());
+ &retry_config);
std::vector<gsl::not_null<BazelBlob const*>> blob_ptrs;
blob_ptrs.reserve(blobs.size());