Better test

This commit is contained in:
Kseniia Sumarokova 2023-08-10 14:27:29 +02:00 committed by GitHub
parent aa5eef8408
commit 137ec90a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,9 @@ def test_parallel_cache_loading_on_startup(cluster, node_name):
assert int(node.query("SELECT max(size) FROM system.filesystem_cache")) == 1024
count = int(node.query("SELECT count() FROM test"))
cache_count = int(node.query("SELECT count() FROM system.filesystem_cache WHERE size > 0"))
node.restart_clickhouse()
assert cache_count == int(node.query("SELECT count() FROM system.filesystem_cache"))
assert node.contains_in_log("Loading filesystem cache with 30 threads")
assert int(node.query("SELECT count() FROM system.filesystem_cache")) > 0