From c88585ddf9386fb14154a4f3baa702569d55584a Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 17 Jun 2024 11:28:47 +0200 Subject: Use StorageConfig functionality via Instance() ...to track changes during refactoring easier. --- test/buildtool/file_system/object_cas.test.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/buildtool/file_system/object_cas.test.cpp') diff --git a/test/buildtool/file_system/object_cas.test.cpp b/test/buildtool/file_system/object_cas.test.cpp index 8bdfc0d8..6a809650 100644 --- a/test/buildtool/file_system/object_cas.test.cpp +++ b/test/buildtool/file_system/object_cas.test.cpp @@ -22,6 +22,7 @@ #include "src/buildtool/file_system/file_system_manager.hpp" #include "src/buildtool/file_system/object_cas.hpp" #include "src/buildtool/file_system/object_type.hpp" +#include "src/buildtool/storage/config.hpp" #include "test/utils/hermeticity/local.hpp" TEST_CASE_METHOD(HermeticLocalTestFixture, "ObjectCAS", "[file_system]") { @@ -29,8 +30,8 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, "ObjectCAS", "[file_system]") { auto test_digest = ArtifactDigest::Create(test_content); SECTION("CAS for files") { - ObjectCAS cas{StorageConfig::GenerationCacheDir(0) / - "casf"}; + ObjectCAS cas{ + StorageConfig::Instance().GenerationCacheDir(0) / "casf"}; CHECK(not cas.BlobPath(test_digest)); SECTION("Add blob from bytes and verify") { @@ -69,7 +70,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, "ObjectCAS", "[file_system]") { SECTION("CAS for executables") { ObjectCAS cas{ - StorageConfig::GenerationCacheDir(0) / "casx"}; + StorageConfig::Instance().GenerationCacheDir(0) / "casx"}; CHECK(not cas.BlobPath(test_digest)); SECTION("Add blob from bytes and verify") { -- cgit v1.2.3