Increase timeout for crash report

This commit is contained in:
Ivan Lezhankin 2021-01-22 15:01:54 +03:00
parent 0cbbb84f24
commit c965e66a3b

View File

@ -26,12 +26,12 @@ def started_node():
def test_send_segfault(started_node, ):
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(0.5)
time.sleep(1)
started_node.exec_in_container(["bash", "-c", "pkill -11 clickhouse"], user="root")
result = None
for attempt in range(1, 6):
time.sleep(0.25 * attempt)
time.sleep(attempt)
result = started_node.exec_in_container(['cat', fake_sentry_server.RESULT_PATH], user='root')
if result == 'OK':
break