Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test_validate.jl for new CodecZlib error type #38

Merged
merged 2 commits into from
Jan 28, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading