Skip to content

Commit 4aa09ff

Browse files
committed
tests: Fix test_load_metadata_from_cache for versioned roots
Expect (failing) call to open for "root_history/2.root.json" now that the client stores versioned roots. Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent cea1745 commit 4aa09ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_updater_top_level_update.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@ def test_load_metadata_from_cache(self, wrapped_open: MagicMock) -> None:
732732
wrapped_open.assert_has_calls(
733733
[
734734
call(os.path.join(self.metadata_dir, "root.json"), "rb"),
735+
call(os.path.join(self.metadata_dir, "root_history/2.root.json"), "rb"),
735736
call(os.path.join(self.metadata_dir, "timestamp.json"), "rb"),
736737
call(os.path.join(self.metadata_dir, "snapshot.json"), "rb"),
737738
call(os.path.join(self.metadata_dir, "targets.json"), "rb"),

0 commit comments

Comments
 (0)