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, }),