From 00bb0e6b35906fa994e2e60cf2323ab7b1cd93de Mon Sep 17 00:00:00 2001 From: Ivan Lezhankin Date: Mon, 8 Feb 2021 18:46:48 +0300 Subject: [PATCH] Skip send_crash_reports test with TSAN --- tests/integration/test_send_crash_reports/test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_send_crash_reports/test.py b/tests/integration/test_send_crash_reports/test.py index a9b141ebfd3..e22cc9681a6 100644 --- a/tests/integration/test_send_crash_reports/test.py +++ b/tests/integration/test_send_crash_reports/test.py @@ -24,14 +24,17 @@ def started_node(): def test_send_segfault(started_node, ): + if started_node.is_built_with_thread_sanitizer(): + pytest.skip("doesn't fit in timeouts for stacktrace generation") + started_node.copy_file_to_container(os.path.join(SCRIPT_DIR, "fake_sentry_server.py"), "/fake_sentry_server.py") started_node.exec_in_container(["bash", "-c", "python3 /fake_sentry_server.py > /fake_sentry_server.log 2>&1"], detach=True, user="root") - time.sleep(1) + time.sleep(0.5) started_node.exec_in_container(["bash", "-c", "pkill -11 clickhouse"], user="root") result = None for attempt in range(1, 6): - time.sleep(attempt) + time.sleep(0.25 * attempt) result = started_node.exec_in_container(['cat', fake_sentry_server.RESULT_PATH], user='root') if result == 'OK': break