mirror of https://github.com/k3s-io/k3s
Fix pkg/probe/tcp unit test for go 1.6.
parent
2bb6f74bf9
commit
03043e4114
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue