From 8ab573ef1c624e2ed81b2032178c25451176d2f1 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 14 Feb 2025 15:16:10 +0100 Subject: ApiBundle: Remove HashFunction. And ensure every user obtains HashFunction from corresponding IExecutionApi --- .../execution_engine/executor/executor.test.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/buildtool/execution_engine/executor/executor.test.cpp') diff --git a/test/buildtool/execution_engine/executor/executor.test.cpp b/test/buildtool/execution_engine/executor/executor.test.cpp index 5a72c87b..622ee800 100644 --- a/test/buildtool/execution_engine/executor/executor.test.cpp +++ b/test/buildtool/execution_engine/executor/executor.test.cpp @@ -344,7 +344,7 @@ TEST_CASE("Executor: Process artifact", "[executor]") { auto api = std::make_shared(config, hash_function.GetType()); Statistics stats{}; Progress progress{}; - auto const apis = CreateTestApiBundle(hash_function, api); + auto const apis = CreateTestApiBundle(api); ExecutionContext const exec_context{.repo_config = &repo_config, .apis = &apis, .remote_context = &remote_context, @@ -362,7 +362,7 @@ TEST_CASE("Executor: Process artifact", "[executor]") { auto api = std::make_shared(config, hash_function.GetType()); Statistics stats{}; Progress progress{}; - auto const apis = CreateTestApiBundle(hash_function, api); + auto const apis = CreateTestApiBundle(api); ExecutionContext const exec_context{.repo_config = &repo_config, .apis = &apis, .remote_context = &remote_context, @@ -380,7 +380,7 @@ TEST_CASE("Executor: Process artifact", "[executor]") { auto api = std::make_shared(config, hash_function.GetType()); Statistics stats{}; Progress progress{}; - auto const apis = CreateTestApiBundle(hash_function, api); + auto const apis = CreateTestApiBundle(api); ExecutionContext const exec_context{.repo_config = &repo_config, .apis = &apis, .remote_context = &remote_context, @@ -427,7 +427,7 @@ TEST_CASE("Executor: Process action", "[executor]") { auto api = std::make_shared(config, hash_function.GetType()); Statistics stats{}; Progress progress{}; - auto const apis = CreateTestApiBundle(hash_function, api); + auto const apis = CreateTestApiBundle(api); ExecutionContext const exec_context{.repo_config = &repo_config, .apis = &apis, .remote_context = &remote_context, @@ -448,7 +448,7 @@ TEST_CASE("Executor: Process action", "[executor]") { auto api = std::make_shared(config, hash_function.GetType()); Statistics stats{}; Progress progress{}; - auto const apis = CreateTestApiBundle(hash_function, api); + auto const apis = CreateTestApiBundle(api); ExecutionContext const exec_context{.repo_config = &repo_config, .apis = &apis, .remote_context = &remote_context, @@ -469,7 +469,7 @@ TEST_CASE("Executor: Process action", "[executor]") { auto api = std::make_shared(config, hash_function.GetType()); Statistics stats{}; Progress progress{}; - auto const apis = CreateTestApiBundle(hash_function, api); + auto const apis = CreateTestApiBundle(api); ExecutionContext const exec_context{.repo_config = &repo_config, .apis = &apis, .remote_context = &remote_context, @@ -493,7 +493,7 @@ TEST_CASE("Executor: Process action", "[executor]") { auto api = std::make_shared(config, hash_function.GetType()); Statistics stats{}; Progress progress{}; - auto const apis = CreateTestApiBundle(hash_function, api); + auto const apis = CreateTestApiBundle(api); ExecutionContext const exec_context{.repo_config = &repo_config, .apis = &apis, .remote_context = &remote_context, @@ -514,7 +514,7 @@ TEST_CASE("Executor: Process action", "[executor]") { auto api = std::make_shared(config, hash_function.GetType()); Statistics stats{}; Progress progress{}; - auto const apis = CreateTestApiBundle(hash_function, api); + auto const apis = CreateTestApiBundle(api); ExecutionContext const exec_context{.repo_config = &repo_config, .apis = &apis, .remote_context = &remote_context, @@ -538,7 +538,7 @@ TEST_CASE("Executor: Process action", "[executor]") { auto api = std::make_shared(config, hash_function.GetType()); Statistics stats{}; Progress progress{}; - auto const apis = CreateTestApiBundle(hash_function, api); + auto const apis = CreateTestApiBundle(api); ExecutionContext const exec_context{.repo_config = &repo_config, .apis = &apis, .remote_context = &remote_context, -- cgit v1.2.3