diff --git a/test/runtests.jl b/test/runtests.jl index 985e712..ba48342 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -178,14 +178,13 @@ end @testset "savefig" begin using CairoMakie r = load_monitoring_results(joinpath(@__DIR__, "test.h5")) - cd(mktempdir()) do - @test isnothing(savefig_monitoring_results(r)) - @test isnothing( - savefig_monitoring_results(r, (:compute, :mem)) - ) - @test isnothing(savefig_monitoring_results(r; ext=:png)) - @test isnothing(savefig_monitoring_results(r; ext=:pdf)) - end + @test isnothing(savefig_monitoring_results(r)) + @test isnothing( + savefig_monitoring_results(r, (:compute, :mem)) + ) + @test isnothing(savefig_monitoring_results(r; ext=:png)) + @test isnothing(savefig_monitoring_results(r; ext=:pdf)) + rm.(filter(endswith(".pdf"), readdir())) # cleanup end end end