Skip to content

Commit 53c2831

Browse files
committed
ssx: update test
Signed-off-by: Rui Chen <rui@chenrui.dev>
1 parent 7abfff1 commit 53c2831

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Formula/s/ssx.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ def install
2222
test do
2323
assert_match version.to_s, shell_output("#{bin}/ssx --version")
2424

25-
assert_match "operation not permitted", shell_output("#{bin}/ssx list 2>&1", 1)
25+
expected_output = if OS.mac?
26+
"operation not permitted"
27+
else
28+
"lookup 100: no such host"
29+
end
30+
assert_match expected_output, shell_output("#{bin}/ssx 100 2>&1", 1)
2631
end
2732
end

0 commit comments

Comments
 (0)