Fix pkg/probe/tcp unit test for go 1.6.

pull/6/head
Joe Finney 2016-03-21 11:12:39 -07:00
parent 2bb6f74bf9
commit 03043e4114
1 changed files with 6 additions and 1 deletions

View File

@ -66,7 +66,12 @@ func TestTcpHealthChecker(t *testing.T) {
// A connection is made and probing would succeed
{tHost, tPort, probe.Success, nil, []string{""}},
// No connection can be made and probing would fail
{tHost, -1, probe.Failure, nil, []string{"unknown port", "Servname not supported for ai_socktype", "nodename nor servname provided, or not known"}},
{tHost, -1, probe.Failure, nil, []string{
"unknown port",
"Servname not supported for ai_socktype",
"nodename nor servname provided, or not known",
"dial tcp: invalid port",
}},
}
prober := New()