mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Merge pull request #59432 from vitlibar/fix-test-test_stop_other_host_during_backup
Fix test test_stop_other_host_during_backup
This commit is contained in:
commit
6a80a20997
@ -1087,9 +1087,11 @@ def test_stop_other_host_during_backup(kill):
|
|||||||
status = node1.query(f"SELECT status FROM system.backups WHERE id='{id}'").strip()
|
status = node1.query(f"SELECT status FROM system.backups WHERE id='{id}'").strip()
|
||||||
|
|
||||||
if kill:
|
if kill:
|
||||||
assert status in ["BACKUP_CREATED", "BACKUP_FAILED"]
|
expected_statuses = ["BACKUP_CREATED", "BACKUP_FAILED"]
|
||||||
else:
|
else:
|
||||||
assert status == "BACKUP_CREATED"
|
expected_statuses = ["BACKUP_CREATED", "BACKUP_CANCELLED"]
|
||||||
|
|
||||||
|
assert status in expected_statuses
|
||||||
|
|
||||||
node2.start_clickhouse()
|
node2.start_clickhouse()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user