tests: improve test_log_family_s3 in case of failures

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-06-03 19:45:06 +03:00
parent 51e27c22a7
commit 499ff70295

View File

@ -57,6 +57,7 @@ def test_log_family_s3(cluster, log_engine, files_overhead, files_overhead_per_i
)
)
try:
node.query("INSERT INTO s3_test SELECT number FROM numbers(5)")
assert node.query("SELECT * FROM s3_test") == "0\n1\n2\n3\n4\n"
assert_objects_count(cluster, files_overhead_per_insert + files_overhead)
@ -73,5 +74,5 @@ def test_log_family_s3(cluster, log_engine, files_overhead, files_overhead_per_i
node.query("TRUNCATE TABLE s3_test")
assert_objects_count(cluster, 0)
finally:
node.query("DROP TABLE s3_test")