diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-28 15:44:16 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-05 13:32:39 +0200 |
commit | 993245d862fcd44b1d8d404b970cbd774526ae2b (patch) | |
tree | 675efeae041524ca146be8adf7de2bb2886d9298 /test/buildtool/storage | |
parent | 849671f3d4ea482d208da4b5adf5c2c3556e25e4 (diff) | |
download | justbuild-993245d862fcd44b1d8d404b970cbd774526ae2b.tar.gz |
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.
Diffstat (limited to 'test/buildtool/storage')
-rw-r--r-- | test/buildtool/storage/large_object_cas.test.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
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<true, ObjectType::Tree> 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: |