From 7ed06f8104c52bb1f3f3fa491dd01102f2aece10 Mon Sep 17 00:00:00 2001 From: Anton Yuzhaninov Date: Wed, 24 Oct 2018 20:10:14 -0400 Subject: 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(': Failed to establish a new connection: [Errno 111] Connection refused',)) Fix this by waiting for TCP port instead pid file. --- test/functional/cases/210_clickhouse/001_migration.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/functional/cases/210_clickhouse/001_migration.robot b/test/functional/cases/210_clickhouse/001_migration.robot index f54f5c4a2..bf6d48084 100644 --- a/test/functional/cases/210_clickhouse/001_migration.robot +++ b/test/functional/cases/210_clickhouse/001_migration.robot @@ -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} -- cgit v1.2.3