Skip to content

Commit

Permalink
tcpstat: update test to drop expect dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Dec 22, 2024
1 parent f1ce52d commit c5e647f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Formula/t/tcpstat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class Tcpstat < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "036527a4c4492a1ca44c9b7c29ab1437108fc2c57105ade2f98fa8cf43a4e839"
end

uses_from_macos "expect" => :test
uses_from_macos "ncurses"

def install
Expand All @@ -34,13 +33,6 @@ def install
end

test do
(testpath/"script.exp").write <<~EXPECT
set timeout 30
spawn "#{bin}/tcpstat"
send -- "q"
expect eof
EXPECT

system "expect", "-f", "script.exp"
assert_match "Resolving", pipe_output(bin/"tcpstat", "q")
end
end

0 comments on commit c5e647f

Please sign in to comment.