From 65ab91d41caee188a8f96903ea850418d989e0b3 Mon Sep 17 00:00:00 2001 From: Hongchao Deng Date: Tue, 3 Nov 2015 18:06:12 -0800 Subject: [PATCH] testing: fix TCP health checker failure on Mac On Mac, error output looks like "nodename nor servname provided, or not known". --- pkg/probe/tcp/tcp_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/probe/tcp/tcp_test.go b/pkg/probe/tcp/tcp_test.go index 8b4c80e03c..bd14255974 100644 --- a/pkg/probe/tcp/tcp_test.go +++ b/pkg/probe/tcp/tcp_test.go @@ -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) {