Merge pull request #48083 from bayandin/ungit-fix-test
ungit: fix test on Mojave
This commit is contained in:
parent
804de37cf1
commit
73104e7486
1 changed files with 1 additions and 3 deletions
|
@ -21,8 +21,6 @@ class Ungit < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
require "nokogiri"
|
||||
|
||||
server = TCPServer.new(0)
|
||||
port = server.addr[1]
|
||||
server.close
|
||||
|
@ -31,7 +29,7 @@ class Ungit < Formula
|
|||
exec bin/"ungit", "--no-launchBrowser", "--port=#{port}", "--autoShutdownTimeout=6000"
|
||||
end
|
||||
sleep 5
|
||||
assert_match "ungit", Nokogiri::HTML(shell_output("curl -s 127.0.0.1:#{port}/")).at_css("title").text
|
||||
assert_includes shell_output("curl -s 127.0.0.1:#{port}/"), "<title>ungit</title>"
|
||||
ensure
|
||||
if ppid
|
||||
Process.kill("TERM", ppid)
|
||||
|
|
Loading…
Reference in a new issue