netcat6: fix test
This commit is contained in:
parent
ed01163fb2
commit
09b6969874
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ class Netcat6 < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
assert_match "HTTP/1.0", pipe_output("#{bin}/nc6 www.google.com 80", "GET / HTTP/1.0\r\n\r\n")
|
||||
out = pipe_output("#{bin}/nc6 www.google.com 80", "GET / HTTP/1.0\r\n\r\n")
|
||||
assert_equal "HTTP/1.0 200 OK", out.lines.first.chomp
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue