Commit 65ab91d4 authored by Hongchao Deng's avatar Hongchao Deng

testing: fix TCP health checker failure on Mac

On Mac, error output looks like "nodename nor servname provided, or not known".
parent 1a597964
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment