mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fix flaky tests
This commit is contained in:
parent
d480c75653
commit
ed23125aee
@ -526,6 +526,7 @@ def test_postgres_distributed(started_cluster):
|
||||
result = node2.query("SELECT DISTINCT(name) FROM test_shards ORDER BY name")
|
||||
started_cluster.unpause_container("postgres1")
|
||||
assert result == "host2\nhost4\n" or result == "host3\nhost4\n"
|
||||
node2.query("DROP TABLE test_shards2")
|
||||
node2.query("DROP TABLE test_shards")
|
||||
node2.query("DROP TABLE test_replicas")
|
||||
|
||||
@ -817,6 +818,9 @@ def test_auto_close_connection(started_cluster):
|
||||
# Connection from python + pg_stat table also has a connection at the moment of current query
|
||||
assert count == 2
|
||||
|
||||
node2.query("DROP TABLE test.stat")
|
||||
node2.query("DROP TABLE test.test_table")
|
||||
|
||||
|
||||
def test_literal_escaping(started_cluster):
|
||||
cursor = started_cluster.postgres_conn.cursor()
|
||||
@ -832,6 +836,7 @@ def test_literal_escaping(started_cluster):
|
||||
node1.query("SELECT * FROM escaping WHERE text like '%a''a%'") # %a'a% -> %a''a%
|
||||
node1.query("SELECT * FROM escaping WHERE text like '%a\\'a%'") # %a'a% -> %a''a%
|
||||
cursor.execute(f"DROP TABLE escaping")
|
||||
node1.query("DROP TABLE default.escaping")
|
||||
|
||||
|
||||
def test_filter_pushdown(started_cluster):
|
||||
@ -886,6 +891,10 @@ def test_filter_pushdown(started_cluster):
|
||||
)
|
||||
|
||||
cursor.execute("DROP SCHEMA test_filter_pushdown CASCADE")
|
||||
node1.query("DROP TABLE test_filter_pushdown_local_table")
|
||||
node1.query("DROP TABLE test_filter_pushdown_pg_table")
|
||||
|
||||
|
||||
|
||||
|
||||
def test_fixed_string_type(started_cluster):
|
||||
|
Loading…
Reference in New Issue
Block a user