testing: fix TCP health checker failure on Mac

On Mac, error output looks like "nodename nor servname provided, or not known".
pull/6/head
Hongchao Deng 2015-11-03 18:06:12 -08:00
parent 1a59796402
commit 65ab91d41c
1 changed files with 1 additions and 1 deletions

View File

@ -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) {