From 993245d862fcd44b1d8d404b970cbd774526ae2b Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 28 Jun 2024 15:44:16 +0200 Subject: Use StorageConfig with generation for initialization of Storage's generations ...instead of std::filesystem::path. StorageConfig is extended to return paths of Storage's parts. --- test/buildtool/storage/large_object_cas.test.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'test/buildtool/storage') diff --git a/test/buildtool/storage/large_object_cas.test.cpp b/test/buildtool/storage/large_object_cas.test.cpp index 45d428da..d5561dcd 100644 --- a/test/buildtool/storage/large_object_cas.test.cpp +++ b/test/buildtool/storage/large_object_cas.test.cpp @@ -100,13 +100,7 @@ class Tree final { TEST_CASE_METHOD(HermeticLocalTestFixture, "LargeObjectCAS: split a small tree", "[storage]") { - auto temp_dir = - StorageConfig::Instance().CreateTypedTmpDir("large_object_cas"); - REQUIRE(temp_dir); - auto const& cas = Storage::Instance().CAS(); - LargeObjectCAS const large_cas( - cas, temp_dir->GetPath() / "root_1"); // Create a small tree: using LargeTestUtils::Tree; @@ -116,7 +110,7 @@ TEST_CASE_METHOD(HermeticLocalTestFixture, auto const& [digest, path] = *small; // Split must be successful: - auto split_pack = large_cas.Split(digest); + auto split_pack = cas.SplitTree(digest); REQUIRE(split_pack); // The result must contain one blob digest: -- cgit v1.2.3