Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Aug 16, 2024
1 parent 49d468a commit c426dd0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/artifacts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,7 @@ end
mktempdir() do dir
with_artifacts_directory(dir) do
@test artifact_meta("broken_artifact", joinpath(badifact_dir, "incorrect_sha256.toml")) != nothing
@test_logs (:error, r"Hash Mismatch!") match_mode=:any begin
@test_throws ErrorException ensure_artifact_installed("broken_artifact", joinpath(badifact_dir, "incorrect_sha256.toml"))
end
@test_throws r"Hash Mismatch!" ensure_artifact_installed("broken_artifact", joinpath(badifact_dir, "incorrect_sha256.toml"))

artifact_toml = joinpath(badifact_dir, "doesnotexist.toml")
@test_throws ErrorException ensure_artifact_installed("does_not_exist", artifact_toml)
Expand Down

0 comments on commit c426dd0

Please sign in to comment.