Skip to content

test: cover upstream SHA mismatch failure - #26

Merged
vitormattos merged 1 commit into
mainfrom
test/upstream-sha-mismatch
Sep 20, 2026
Merged

vitormattos merged 1 commit into
mainfrom
test/upstream-sha-mismatch

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Summary

Close the remaining local integrity scenario from #14.

The new regression test verifies that when downloaded upstream bytes do not match the SHA-256 recorded in the manifest:

  • synchronization raises a clear SHA-256 mismatch error;
  • the destination file is not created or modified.

This makes the existing fail-before-write behavior explicit and protected by tests.

@vitormattos
vitormattos merged commit f8d2774 into main Sep 20, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant