From 68266555ec585a265a843b5c14232c033bbccbd1 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 29 Sep 2021 15:52:46 +0200 Subject: [PATCH] Protect against HTTP.jl potentially not always closing the io. --- test/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 214cf43..5c48a3f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -99,7 +99,7 @@ end ZstdCompressorStream(open(joinpath(tmpd, "julia.tar.zst"), "w")), ) @sync begin - dl_task = @async HTTP.get(url; response_stream=tee) + dl_task = @async (HTTP.get(url; response_stream=tee); close(tee)) sha_task = @async bytes2hex(SHA.sha256(buffer_shasum)) tar_task = @async Tar.rewrite(buffer_tar, compressors) @test fetch(sha_task) == expected_shasum