mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Fix style check, improve test
This commit is contained in:
parent
0d0cbb44e8
commit
c9f0c426e1
@ -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>
|
||||
|
||||
|
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user