summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp
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/buildtool/execution_api/bazel/bazel_cas_client.test.cpp
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/buildtool/execution_api/bazel/bazel_cas_client.test.cpp')
-rw-r--r--test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp b/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp
index 9335ce77..5c906b44 100644
--- a/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp
+++ b/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp
@@ -39,10 +39,11 @@ TEST_CASE("Bazel internals: CAS Client", "[execution_api]") {
auto remote_config = TestRemoteConfig::ReadFromEnvironment();
REQUIRE(remote_config);
REQUIRE(remote_config->remote_address);
+ 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);
SECTION("Valid digest and blob") {
// digest of "test"