File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ def test_cancel_backup(client: weaviate.WeaviateClient) -> None:
475
475
resp = client .backup .create (backup_id = backup_id , backend = BACKEND )
476
476
assert resp .status == BackupStatus .STARTED
477
477
478
- assert client .backup .cancel (backup_id = backup_id , backend = BACKEND )
478
+ assert client .backup .cancel_backup (backup_id = backup_id , backend = BACKEND )
479
479
480
480
# async process
481
481
start = time .time ()
@@ -485,4 +485,5 @@ def test_cancel_backup(client: weaviate.WeaviateClient) -> None:
485
485
break
486
486
time .sleep (0.1 )
487
487
status_resp = client .backup .get_create_status (backup_id = backup_id , backend = BACKEND )
488
- assert status_resp .status == BackupStatus .CANCELED
488
+ # there can be a race between the cancel and the backup completion
489
+ assert status_resp .status == BackupStatus .CANCELED or status_resp .status == BackupStatus .SUCCESS
You can’t perform that action at this time.
0 commit comments