From 03043e4114815c9b47cb373986e7fb047d756f3c Mon Sep 17 00:00:00 2001 From: Joe Finney Date: Mon, 21 Mar 2016 11:12:39 -0700 Subject: [PATCH] Fix pkg/probe/tcp unit test for go 1.6. --- pkg/probe/tcp/tcp_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/probe/tcp/tcp_test.go b/pkg/probe/tcp/tcp_test.go index 298de5acf7f..6061218062c 100644 --- a/pkg/probe/tcp/tcp_test.go +++ b/pkg/probe/tcp/tcp_test.go @@ -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()