mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Update unit test
This commit is contained in:
parent
745673181e
commit
3cbc1a3335
@ -721,8 +721,10 @@ TEST_F(FileCacheTest, writeBuffer)
|
||||
auto holder2 = write_to_cache("key2", {"1", "22", "333", "4444", "55555"}, true);
|
||||
file_segment_paths.emplace_back(holder2->front().getPathInLocalCache());
|
||||
|
||||
std::cerr << "\nFile segments: " << holder2->toString() << "\n";
|
||||
|
||||
ASSERT_EQ(fs::file_size(file_segment_paths.back()), 15);
|
||||
ASSERT_TRUE(holder2->front().range() == FileSegment::Range(0, 15));
|
||||
ASSERT_EQ(holder2->front().range(), FileSegment::Range(0, 15));
|
||||
ASSERT_EQ(cache.getUsedCacheSize(), 22);
|
||||
}
|
||||
ASSERT_FALSE(fs::exists(file_segment_paths.back()));
|
||||
|
Loading…
Reference in New Issue
Block a user