Fix style check, improve test

This commit is contained in:
kssenii 2023-08-02 17:15:50 +02:00
parent 0d0cbb44e8
commit c9f0c426e1
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,6 @@
#include <Interpreters/Cache/FileCache.h>
#include <Common/CurrentMetrics.h>
#include <Common/randomSeed.h>
#include <Common/randomSeed.h>
#include <Common/logger_useful.h>
#include <pcg-random/pcg_random.hpp>

View File

@ -765,8 +765,10 @@ def test_parallel_cache_loading_on_startup(cluster, node_name):
)
assert int(node.query("SELECT count() FROM system.filesystem_cache")) > 0
assert int(node.query("SELECT max(size) FROM system.filesystem_cache")) == 1024
count = int(node.query("SELECT count() FROM test"))
node.restart_clickhouse()
assert node.contains_in_log("Loading filesystem cache with 30 threads")
assert int(node.query("SELECT count() FROM system.filesystem_cache")) > 0
assert int(node.query("SELECT max(size) FROM system.filesystem_cache")) == 1024
@ -779,6 +781,7 @@ def test_parallel_cache_loading_on_startup(cluster, node_name):
> 0
)
node.query("SELECT * FROM test FORMAT Null")
assert count == int(node.query("SELECT count() FROM test"))
@pytest.mark.parametrize("node_name", ["node"])