Browse Source

Protect against HTTP.jl potentially not always closing the io.

pull/1/head
Fredrik Ekre 4 years ago
parent
commit
68266555ec
  1. 2
      test/runtests.jl

2
test/runtests.jl

@ -99,7 +99,7 @@ end @@ -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

Loading…
Cancel
Save