tile38: brew style --fix

This commit is contained in:
Mike McQuaid 2019-10-15 09:00:37 +01:00
parent 4214b513bc
commit 37e2352d7d
No known key found for this signature in database
GPG key ID: 48A898132FD8EE70

View file

@ -69,16 +69,14 @@ class Tile38 < Formula
end
test do
begin
pid = fork do
exec "#{bin}/tile38-server", "-q"
end
sleep 2
json_output = shell_output("#{bin}/tile38-cli server")
tile38_server = JSON.parse(json_output)
assert_equal tile38_server["ok"], true
ensure
Process.kill("HUP", pid)
pid = fork do
exec "#{bin}/tile38-server", "-q"
end
sleep 2
json_output = shell_output("#{bin}/tile38-cli server")
tile38_server = JSON.parse(json_output)
assert_equal tile38_server["ok"], true
ensure
Process.kill("HUP", pid)
end
end