Skip to content

Commit

Permalink
h2o: remove process.kill/wait
Browse files Browse the repository at this point in the history
  • Loading branch information
samford committed May 25, 2020
1 parent dc9288c commit 2dc12b8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Formula/h2o.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,11 @@ def plist
test do
port = free_port
(testpath/"h2o.conf").write conf_example(port)
pid = fork do
fork do
exec "#{bin}/h2o -c #{testpath}/h2o.conf"
end
sleep 2

begin
assert_match "Welcome to H2O", shell_output("curl localhost:#{port}")
ensure
Process.kill("SIGINT", pid)
Process.wait(pid)
end
assert_match "Welcome to H2O", shell_output("curl localhost:#{port}")
end
end

0 comments on commit 2dc12b8

Please sign in to comment.