Skip to content

Commit

Permalink
Update test_validate.jl for new CodecZlib error type
Browse files Browse the repository at this point in the history
JuliaIO/CodecZlib.jl#93 adds a new error type for decompression errors. This PR updates some tests to be compatible with this change.
  • Loading branch information
nhz2 authored Jan 13, 2025
1 parent 475018e commit 4c3ff48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_validate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ end
zipsource(bad_uncompressed_file) do source
# file is bad
f = next_file(source)
@test_throws ErrorException validate(f)
@test_throws Exception validate(f)
end
zipsource(bad_uncompressed_file) do source
# note: this error breaks reading because the zlib codec does not read complete information
for file in source
@test_throws ErrorException read(file)
@test_throws Exception read(file)
end
# archive is bad
@test_throws ErrorException validate(source)
Expand Down Expand Up @@ -190,4 +190,4 @@ end
# TODO: EOCD checking
# TODO: duplicate file name checking
# TODO: out of order CD
end
end

0 comments on commit 4c3ff48

Please sign in to comment.