From d202e8f6051df5eb89d0f2eb1b9ac7109d204f56 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 2 Jul 2024 13:21:14 +0200 Subject: Remove HermeticLocalTestFixture ...and create StorageConfig and Storage in place if needed. --- .../execution_api/execution_service/cas_server.test.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'test/buildtool/execution_api/execution_service/cas_server.test.cpp') diff --git a/test/buildtool/execution_api/execution_service/cas_server.test.cpp b/test/buildtool/execution_api/execution_service/cas_server.test.cpp index 5b6e50b5..a7791cd5 100644 --- a/test/buildtool/execution_api/execution_service/cas_server.test.cpp +++ b/test/buildtool/execution_api/execution_service/cas_server.test.cpp @@ -22,7 +22,7 @@ #include "src/buildtool/file_system/object_type.hpp" #include "src/buildtool/storage/config.hpp" #include "src/buildtool/storage/storage.hpp" -#include "test/utils/hermeticity/local.hpp" +#include "test/utils/hermeticity/test_storage_config.hpp" namespace { [[nodiscard]] auto Upload( @@ -41,12 +41,11 @@ namespace { } } // namespace -TEST_CASE_METHOD(HermeticLocalTestFixture, - "CAS Service: upload incomplete tree", - "[execution_service]") { - auto const storage = Storage::Create(&StorageConfig::Instance()); +TEST_CASE("CAS Service: upload incomplete tree", "[execution_service]") { + auto const storage_config = TestStorageConfig::Create(); + auto const storage = Storage::Create(&storage_config.Get()); - auto cas_server = CASServiceImpl{&StorageConfig::Instance(), &storage}; + auto cas_server = CASServiceImpl{&storage_config.Get(), &storage}; auto instance_name = std::string{"remote-execution"}; // Create an empty tree. -- cgit v1.2.3