diff options
author | Anton Yuzhaninov <citrin+git@citrin.ru> | 2018-10-24 20:10:14 -0400 |
---|---|---|
committer | Anton Yuzhaninov <citrin+git@citrin.ru> | 2018-10-24 20:10:14 -0400 |
commit | 7ed06f8104c52bb1f3f3fa491dd01102f2aece10 (patch) | |
tree | 7ff578f1e9931e12f22b15193393a2506127c16a /test | |
parent | 701419544ded2fe5c07dd5f614e4edce65d1cc28 (diff) | |
download | rspamd-7ed06f8104c52bb1f3f3fa491dd01102f2aece10.tar.gz rspamd-7ed06f8104c52bb1f3f3fa491dd01102f2aece10.zip |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/210_clickhouse/001_migration.robot | 2 |
1 files changed, 1 insertions, 1 deletions
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} |