mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 15:45:47 +02:00
Fix race in Cases.210 Clickhouse.001
Clickhouse test sometimes fails with an error: ConnectionError: HTTPConnectionPool(host='localhost', port=18123): Max retries exceeded with url: /?default_format=JSONEachRow (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f40ad96fdd0>: Failed to establish a new connection: [Errno 111] Connection refused',)) Fix this by waiting for TCP port instead pid file.
This commit is contained in:
parent
701419544d
commit
7ed06f8104
@ -69,7 +69,7 @@ Clickhouse Setup
|
||||
${result} = Run Process clickhouse-server --daemon --config-file\=${TMPDIR}/clickhouse-config.xml --pid-file\=${TMPDIR}/clickhouse.pid
|
||||
Run Keyword If ${result.rc} != 0 Log ${result.stderr}
|
||||
Should Be Equal As Integers ${result.rc} 0
|
||||
Wait Until Keyword Succeeds 5 sec 1 sec Check Pidfile ${TMPDIR}/clickhouse.pid timeout=5 sec
|
||||
Wait Until Keyword Succeeds 5 sec 50 ms TCP Connect localhost ${CLICKHOUSE_PORT}
|
||||
Set Suite Variable ${TMPDIR} ${TMPDIR}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user