Skip to content

Commit

Permalink
Added unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Oct 28, 2024
1 parent e1e5240 commit 076bc0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/arduino/resources/resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ func TestDownloadAndChecksums(t *testing.T) {
require.NoError(t, err)
downloadAndTestChecksum()

require.NoError(t, r.TestLocalArchiveSize(tmp))
r.Size = 500
require.NoError(t, r.TestLocalArchiveSize(tmp))

r.Checksum = ""
_, err = r.TestLocalArchiveChecksum(tmp)
require.Error(t, err)
Expand Down

0 comments on commit 076bc0b

Please sign in to comment.