Skip to content

Commit

Permalink
Merge pull request #202090 from Homebrew/tcpstat-test
Browse files Browse the repository at this point in the history
tcpstat: update test to drop `expect` dependency
  • Loading branch information
BrewTestBot authored Dec 22, 2024
2 parents e44e121 + c5e647f commit 5671fcb
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 5671fcb

Please sign in to comment.