mirror of https://github.com/k3s-io/k3s
testing: fix TCP health checker failure on Mac
On Mac, error output looks like "nodename nor servname provided, or not known".pull/6/head
parent
1a59796402
commit
65ab91d41c
|
@ -50,7 +50,7 @@ func TestTcpHealthChecker(t *testing.T) {
|
|||
}{
|
||||
// The probe will be filled in below. This is primarily testing that a connection is made.
|
||||
{probe.Success, true, false, []string{""}},
|
||||
{probe.Failure, false, false, []string{"unknown port", "Servname not supported for ai_socktype"}},
|
||||
{probe.Failure, false, false, []string{"unknown port", "Servname not supported for ai_socktype", "nodename nor servname provided, or not known"}},
|
||||
}
|
||||
|
||||
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
Loading…
Reference in New Issue