From a35db2ae8aeeddce26b6c4888ddfdaf57f2c8d9f Mon Sep 17 00:00:00 2001 From: wyewata Date: Thu, 29 Jul 2021 03:56:23 +0900 Subject: [PATCH] Fix expected error messages (#1269) Co-authored-by: Joel Speed --- pkg/http/server_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/http/server_test.go b/pkg/http/server_test.go index a2b995a2..612ef9f7 100644 --- a/pkg/http/server_test.go +++ b/pkg/http/server_test.go @@ -140,7 +140,7 @@ var _ = Describe("Server", func() { Handler: handler, BindAddress: "127.0.0.1:a", }, - expectedErr: errors.New("error setting up listener: listen (tcp, 127.0.0.1:a) failed: listen tcp: lookup tcp/a: "), + expectedErr: errors.New("error setting up listener: listen (tcp, 127.0.0.1:a) failed: listen tcp: "), expectHTTPListener: false, expectTLSListener: false, }), @@ -153,7 +153,7 @@ var _ = Describe("Server", func() { Cert: &certDataSource, }, }, - expectedErr: errors.New("error setting up TLS listener: listen (127.0.0.1:a) failed: listen tcp: lookup tcp/a: "), + expectedErr: errors.New("error setting up TLS listener: listen (127.0.0.1:a) failed: listen tcp: "), expectHTTPListener: false, expectTLSListener: false, }),