Skip to content

Commit

Permalink
Fix flaky backup test (#5453)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdegat01 authored Nov 25, 2024
1 parent ec7241c commit 42e704d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/backups/test_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,8 @@ async def test_reload_multiple_locations(coresys: CoreSys, tmp_supervisor_data:
assert coresys.backups.list_backups
assert (backup := coresys.backups.get("7fed74c8"))
assert backup.location in {None, "backup_test"}
assert backup.locations == [None, "backup_test"]
assert None in backup.locations
assert "backup_test" in backup.locations
assert backup.all_locations == {".cloud_backup", None, "backup_test"}


Expand Down Expand Up @@ -1967,7 +1968,8 @@ async def test_partial_reload_multiple_locations(
assert coresys.backups.list_backups
assert (backup := coresys.backups.get("7fed74c8"))
assert backup.location is None
assert backup.locations == [None, "backup_test"]
assert None in backup.locations
assert "backup_test" in backup.locations
assert backup.all_locations == {".cloud_backup", None, "backup_test"}


Expand Down

0 comments on commit 42e704d

Please sign in to comment.