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:
Ilya Yatsishin 2024-02-01 00:57:21 +04:00 committed by GitHub
commit 6a80a20997
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()