Fix async tests.

This commit is contained in:
Vitaly Baranov 2022-05-22 22:34:48 +02:00
parent 5cabdbd982
commit 131382e025
2 changed files with 4 additions and 4 deletions

View File

@ -278,7 +278,7 @@ def test_async():
[id, _, status] = instance.query(
f"BACKUP TABLE test.table TO {backup_name} ASYNC"
).split("\t")
assert status == "MAKING_BACKUP\n"
assert status == "MAKING_BACKUP\n" or status == "BACKUP_COMPLETE\n"
assert_eq_with_retry(
instance,
f"SELECT status FROM system.backups WHERE uuid='{id}'",
@ -290,7 +290,7 @@ def test_async():
[id, _, status] = instance.query(
f"RESTORE TABLE test.table FROM {backup_name} ASYNC"
).split("\t")
assert status == "RESTORING\n"
assert status == "RESTORING\n" or status == "RESTORED\n"
assert_eq_with_retry(
instance, f"SELECT status FROM system.backups WHERE uuid='{id}'", "RESTORED\n"
)

View File

@ -389,7 +389,7 @@ def test_replicated_database_async():
f"BACKUP DATABASE mydb ON CLUSTER 'cluster' TO {backup_name} ASYNC"
).split("\t")
assert status == "MAKING_BACKUP\n"
assert status == "MAKING_BACKUP\n" or status == "BACKUP_COMPLETE\n"
assert_eq_with_retry(
node1,
@ -403,7 +403,7 @@ def test_replicated_database_async():
f"RESTORE DATABASE mydb ON CLUSTER 'cluster' FROM {backup_name} ASYNC"
).split("\t")
assert status == "RESTORING\n"
assert status == "RESTORING\n" or status == "RESTORED\n"
assert_eq_with_retry(
node1, f"SELECT status FROM system.backups WHERE uuid='{id}'", "RESTORED\n"