Skip to content

Commit af06c4a

Browse files
committed
check_tcp: fix tests on github bsd vm
returned with otherwise: connect: network is unreachable
1 parent cc5a65f commit af06c4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/snclient/check_tcp_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ use ssl = false
1818
`
1919
snc := StartTestAgent(t, config)
2020

21-
res := snc.RunCheck("check_tcp", []string{"-p", "45666"})
21+
res := snc.RunCheck("check_tcp", []string{"-H", "localhost", "-p", "45666"})
2222
assert.Equalf(t, CheckExitOK, res.State, "state ok")
2323
assert.Regexpf(t,
24-
`^TCP OK - [\d.]+ seconds response time on port 45666`,
24+
`^TCP OK - [\d.]+ seconds response time on localhost port 45666`,
2525
string(res.BuildPluginOutput()),
2626
"output matches",
2727
)

0 commit comments

Comments
 (0)