diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-02 15:12:44 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-05 13:32:39 +0200 |
commit | b1ce7ce328e322cafa2401af77a9334c61b72034 (patch) | |
tree | 4d6c5168c1c006b1ab735978afdec00b1832befb /test/buildtool/storage/large_object_cas.test.cpp | |
parent | d202e8f6051df5eb89d0f2eb1b9ac7109d204f56 (diff) | |
download | justbuild-b1ce7ce328e322cafa2401af77a9334c61b72034.tar.gz |
Convert StorageConfig to a general class
Diffstat (limited to 'test/buildtool/storage/large_object_cas.test.cpp')
-rw-r--r-- | test/buildtool/storage/large_object_cas.test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/buildtool/storage/large_object_cas.test.cpp b/test/buildtool/storage/large_object_cas.test.cpp index 8daf1eaf..09935a40 100644 --- a/test/buildtool/storage/large_object_cas.test.cpp +++ b/test/buildtool/storage/large_object_cas.test.cpp @@ -195,7 +195,7 @@ static void TestLarge(StorageConfig const& storage_config, CHECK(pack_3->size() == pack_1->size()); // Check there are no spliced results in all generations: - for (std::size_t i = 0; i < storage_config.NumGenerations(); ++i) { + for (std::size_t i = 0; i < storage_config.num_generations; ++i) { auto const storage = ::Generation::Create(&storage_config); auto generation_path = kIsTree ? storage.CAS().TreePath(digest) @@ -605,7 +605,7 @@ TEST_CASE("LargeObjectCAS: uplink nested large objects", "[storage]") { REQUIRE(split_nested_blob_2); // Check there are no spliced results in old generations: - for (std::size_t i = 1; i < storage_config.Get().NumGenerations(); ++i) { + for (std::size_t i = 1; i < storage_config.Get().num_generations; ++i) { auto const storage = ::Generation::Create(&storage_config.Get(), /*generation=*/i); auto const& generation_cas = storage.CAS(); |