diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-17 16:14:12 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-19 09:50:37 +0200 |
commit | c8394c2ffc3688356cf985d46e8ce56d72050f6a (patch) | |
tree | 2a5deb6ed40f3e8daca90c02711cbc3aba3f548c /test/buildtool/execution_engine/executor/executor.test.cpp | |
parent | 31b782119138859c29ac8ff54bcfe19aa00fca42 (diff) | |
download | justbuild-c8394c2ffc3688356cf985d46e8ce56d72050f6a.tar.gz |
Remove the RetryConfig singleton
...and replace it with instances created early via a builder
pattern.
Diffstat (limited to 'test/buildtool/execution_engine/executor/executor.test.cpp')
-rw-r--r-- | test/buildtool/execution_engine/executor/executor.test.cpp | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/test/buildtool/execution_engine/executor/executor.test.cpp b/test/buildtool/execution_engine/executor/executor.test.cpp index 5d3a1b6e..c1e8f06a 100644 --- a/test/buildtool/execution_engine/executor/executor.test.cpp +++ b/test/buildtool/execution_engine/executor/executor.test.cpp @@ -283,13 +283,14 @@ TEST_CASE("Executor: Process artifact", "[executor]") { Statistics stats{}; Progress progress{}; Auth auth{}; + RetryConfig retry_config{}; // default retry config Executor runner{&repo_config, api.get(), api.get(), /*properties=*/{}, /*dispatch_list=*/{}, &auth, - &RetryConfig::Instance(), + &retry_config, &stats, &progress}; @@ -304,13 +305,14 @@ TEST_CASE("Executor: Process artifact", "[executor]") { Statistics stats{}; Progress progress{}; Auth auth{}; + RetryConfig retry_config{}; // default retry config Executor runner{&repo_config, api.get(), api.get(), /*properties=*/{}, /*dispatch_list=*/{}, &auth, - &RetryConfig::Instance(), + &retry_config, &stats, &progress}; @@ -325,13 +327,14 @@ TEST_CASE("Executor: Process artifact", "[executor]") { Statistics stats{}; Progress progress{}; Auth auth{}; + RetryConfig retry_config{}; // default retry config Executor runner{&repo_config, api.get(), api.get(), /*properties=*/{}, /*dispatch_list=*/{}, &auth, - &RetryConfig::Instance(), + &retry_config, &stats, &progress}; @@ -367,13 +370,14 @@ TEST_CASE("Executor: Process action", "[executor]") { Statistics stats{}; Progress progress{}; Auth auth{}; + RetryConfig retry_config{}; // default retry config Executor runner{&repo_config, api.get(), api.get(), /*properties=*/{}, /*dispatch_list=*/{}, &auth, - &RetryConfig::Instance(), + &retry_config, &stats, &progress}; @@ -391,13 +395,14 @@ TEST_CASE("Executor: Process action", "[executor]") { Statistics stats{}; Progress progress{}; Auth auth{}; + RetryConfig retry_config{}; // default retry config Executor runner{&repo_config, api.get(), api.get(), /*properties=*/{}, /*dispatch_list=*/{}, &auth, - &RetryConfig::Instance(), + &retry_config, &stats, &progress}; @@ -415,13 +420,14 @@ TEST_CASE("Executor: Process action", "[executor]") { Statistics stats{}; Progress progress{}; Auth auth{}; + RetryConfig retry_config{}; // default retry config Executor runner{&repo_config, api.get(), api.get(), /*properties=*/{}, /*dispatch_list=*/{}, &auth, - &RetryConfig::Instance(), + &retry_config, &stats, &progress}; @@ -442,13 +448,14 @@ TEST_CASE("Executor: Process action", "[executor]") { Statistics stats{}; Progress progress{}; Auth auth{}; + RetryConfig retry_config{}; // default retry config Executor runner{&repo_config, api.get(), api.get(), /*properties=*/{}, /*dispatch_list=*/{}, &auth, - &RetryConfig::Instance(), + &retry_config, &stats, &progress}; @@ -466,13 +473,14 @@ TEST_CASE("Executor: Process action", "[executor]") { Statistics stats{}; Progress progress{}; Auth auth{}; + RetryConfig retry_config{}; // default retry config Executor runner{&repo_config, api.get(), api.get(), /*properties=*/{}, /*dispatch_list=*/{}, &auth, - &RetryConfig::Instance(), + &retry_config, &stats, &progress}; @@ -493,13 +501,14 @@ TEST_CASE("Executor: Process action", "[executor]") { Statistics stats{}; Progress progress{}; Auth auth{}; + RetryConfig retry_config{}; // default retry config Executor runner{&repo_config, api.get(), api.get(), /*properties=*/{}, /*dispatch_list=*/{}, &auth, - &RetryConfig::Instance(), + &retry_config, &stats, &progress}; |