Skip to content

Commit 236fab6

Browse files
authored
Fix checksum doesn't match error (#923)
* implement test and replace unused test file * fix the bug: The buffer was not containing the full archive because when red by `extract.Archive(...)` some bytes were skipped because of padding. This was causing the checksum to be different from the expected one
1 parent b350f56 commit 236fab6

File tree

5 files changed

+663
-5923
lines changed

5 files changed

+663
-5923
lines changed

main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func TestInstallToolV2(t *testing.T) {
145145
tests := []test{
146146
{bossacInstallURLOK, http.StatusOK, "ok"},
147147
{bossacInstallWrongSig, http.StatusInternalServerError, "verification error"},
148-
{bossacInstallWrongCheck, http.StatusInternalServerError, "checksum doesn't match"},
148+
{bossacInstallWrongCheck, http.StatusInternalServerError, "checksum of downloaded file doesn't match"},
149149
{bossacInstallNoURL, http.StatusOK, "ok"},
150150
}
151151

0 commit comments

Comments
 (0)