Skip to content

Commit

Permalink
Kill them with fire.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored and staticfloat committed Oct 11, 2023
1 parent c28fb52 commit 3f540e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ try
finally
if server_process !== nothing
@info("Reaping automatically-started local PkgServer...")
kill(server_process)
# TODO: After upgrade to Julia 1.9 (from 1.7) this doesn't die from SIGTERM.
kill(server_process, Base.SIGKILL)
wait(server_process)
@info("Outputting testing PkgServer logs:")
for f in filter(f -> endswith(f, "-pkgserver.log"), readdir("$(temp_dir)/logs"; join=true))
Expand Down
2 changes: 1 addition & 1 deletion test/tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,6 @@ end
@test HTTP.get("$(flavorless_server_url)/registries.conservative"; status_exception = false).status == 404

sleep(0.1)
kill(server_process)
kill(server_process, Base.SIGKILL)
wait(server_process)
end

0 comments on commit 3f540e3

Please sign in to comment.