mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Fix pkg/probe/tcp unit test for go 1.6.
This commit is contained in:
parent
2bb6f74bf9
commit
03043e4114
@ -66,7 +66,12 @@ func TestTcpHealthChecker(t *testing.T) {
|
|||||||
// A connection is made and probing would succeed
|
// A connection is made and probing would succeed
|
||||||
{tHost, tPort, probe.Success, nil, []string{""}},
|
{tHost, tPort, probe.Success, nil, []string{""}},
|
||||||
// No connection can be made and probing would fail
|
// 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()
|
prober := New()
|
||||||
|
Loading…
Reference in New Issue
Block a user