From c426dd0fbe42a439ebee17481bff748c3a8c9189 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Fri, 16 Aug 2024 14:52:03 +0100 Subject: [PATCH] fix test --- test/artifacts.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/artifacts.jl b/test/artifacts.jl index d176dce5a1..202677c6ff 100644 --- a/test/artifacts.jl +++ b/test/artifacts.jl @@ -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)