From beb3faa6956b9bfd58d4ea6644a9b2987409aaba Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 5 Jul 2024 16:49:45 +0200 Subject: Use HashFunction functionality via Instance() ...to track changes during refactoring easier. --- test/utils/remote_execution/main-remote-execution.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/utils/remote_execution/main-remote-execution.cpp') diff --git a/test/utils/remote_execution/main-remote-execution.cpp b/test/utils/remote_execution/main-remote-execution.cpp index 3b4bc60e..05aec296 100644 --- a/test/utils/remote_execution/main-remote-execution.cpp +++ b/test/utils/remote_execution/main-remote-execution.cpp @@ -22,6 +22,7 @@ #include "catch2/catch_session.hpp" #include "catch2/catch_test_macros.hpp" #include "src/buildtool/compatibility/compatibility.hpp" +#include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/execution_api/remote/config.hpp" #include "src/buildtool/file_system/file_system_manager.hpp" #include "src/buildtool/file_system/git_context.hpp" @@ -50,9 +51,9 @@ void ConfigureRemoteExecution() { std::exit(EXIT_FAILURE); } - HashFunction::SetHashType(Compatibility::IsCompatible() - ? HashFunction::JustHash::Compatible - : HashFunction::JustHash::Native); + HashFunction::Instance().SetHashType( + Compatibility::IsCompatible() ? HashFunction::JustHash::Compatible + : HashFunction::JustHash::Native); auto remote_config = TestRemoteConfig::ReadFromEnvironment(); if (not remote_config or remote_config->remote_address == std::nullopt) { -- cgit v1.2.3