mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Fix async tests.
This commit is contained in:
parent
5cabdbd982
commit
131382e025
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user