Skip to content

Commit

Permalink
Fix backup cancel test
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkkul committed Oct 17, 2024
1 parent f47a586 commit 740d94a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integration_v3/test_backup_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def test_cancel_backup(client: weaviate.WeaviateClient) -> None:
resp = client.backup.create(backup_id=backup_id, backend=BACKEND)
assert resp.status == BackupStatus.STARTED

assert client.backup.cancel(backup_id=backup_id, backend=BACKEND)
assert client.backup.cancel_backup(backup_id=backup_id, backend=BACKEND)

# async process
start = time.time()
Expand All @@ -485,4 +485,5 @@ def test_cancel_backup(client: weaviate.WeaviateClient) -> None:
break
time.sleep(0.1)
status_resp = client.backup.get_create_status(backup_id=backup_id, backend=BACKEND)
assert status_resp.status == BackupStatus.CANCELED
# there can be a race between the cancel and the backup completion
assert status_resp.status == BackupStatus.CANCELED or status_resp.status == BackupStatus.SUCCESS

0 comments on commit 740d94a

Please sign in to comment.