Skip to content

Commit 2f5abfb

Browse files
committed
Use correct logic for license cache tests
Check the correct checksum when no rebuild is requested Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 952bc87 commit 2f5abfb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/licensedcode/test_zzzz_cache.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def test_LicenseCache_load_or_build_from_empty(self):
8181
assert hash.sha1(cache_file) != idx_checksum_before
8282

8383
# force=False loads an index
84+
idx_checksum_before = hash.sha1(cache_file)
85+
8486
_cached4 = cache.LicenseCache.load_or_build(
8587
licensedcode_cache_dir=licensedcode_cache_dir,
8688
scancode_cache_dir=scancode_cache_dir,

0 commit comments

Comments
 (0)