From 21e48fc045ca665791bf3e1eae5abc674d0c426c Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Mon, 25 May 2020 17:39:45 -0400 Subject: [PATCH] nanomsg: remove process.kill/wait from test --- Formula/nanomsg.rb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Formula/nanomsg.rb b/Formula/nanomsg.rb index 5b86bea7f8fc..989c396db738 100644 --- a/Formula/nanomsg.rb +++ b/Formula/nanomsg.rb @@ -23,17 +23,12 @@ def install test do bind = "tcp://127.0.0.1:#{free_port}" - pid = fork do + fork do exec "#{bin}/nanocat --rep --bind #{bind} --format ascii --data home" end sleep 2 - begin - output = shell_output("#{bin}/nanocat --req --connect #{bind} --format ascii --data brew") - assert_match /home/, output - ensure - Process.kill("SIGINT", pid) - Process.wait(pid) - end + output = shell_output("#{bin}/nanocat --req --connect #{bind} --format ascii --data brew") + assert_match /home/, output end end