mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-09 17:14:47 +00:00
Added waiting to other PostgreSQL tests
This commit is contained in:
parent
6b44088a8b
commit
adc73beb93
@ -40,7 +40,10 @@ server_port = 5433
|
||||
def started_cluster():
|
||||
try:
|
||||
cluster.start()
|
||||
|
||||
# Wait for the PostgreSQL handler to start.
|
||||
# Cluster.start waits until port 9000 becomes accessible.
|
||||
# Server opens the PostgreSQL compatibility port a bit later.
|
||||
cluster.instances["node"].wait_for_log_line("PostgreSQL compatibility protocol")
|
||||
yield cluster
|
||||
except Exception as ex:
|
||||
logging.exception(ex)
|
||||
|
@ -26,6 +26,10 @@ def started_cluster():
|
||||
cluster.start()
|
||||
node1.query("CREATE DATABASE test")
|
||||
node2.query("CREATE DATABASE test")
|
||||
# Wait for the PostgreSQL handler to start.
|
||||
# cluster.start waits until port 9000 becomes accessible.
|
||||
# Server opens the PostgreSQL compatibility port a bit later.
|
||||
node1.wait_for_log_line("PostgreSQL compatibility protocol")
|
||||
yield cluster
|
||||
|
||||
finally:
|
||||
|
Loading…
Reference in New Issue
Block a user