ClickHouse/tests/integration/test_shutdown_static_destructor_failure/test.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
474 B
Python
Raw Normal View History

2024-07-24 10:04:28 +00:00
#!/usr/bin/env python3
import pytest
from helpers.cluster import ClickHouseCluster
cluster = ClickHouseCluster(__file__)
2024-07-24 10:14:25 +00:00
node = cluster.add_instance("node", main_configs=[], stay_alive=True)
2024-07-24 10:04:28 +00:00
@pytest.fixture(scope="module", autouse=True)
def start_cluster():
try:
cluster.start()
yield cluster
finally:
cluster.shutdown()
def test_shutdown():
node.query("SYSTEM ENABLE FAILPOINT lazy_pipe_fds_fail_close")
node.stop_clickhouse()