From f978ca4c4396fb8a8faf5be9e9b324f62d1836b1 Mon Sep 17 00:00:00 2001 From: Maysun J Faisal Date: Mon, 20 Nov 2023 17:31:01 -0500 Subject: [PATCH] Update Test log Signed-off-by: Maysun J Faisal --- pkg/devfile/parse_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/devfile/parse_test.go b/pkg/devfile/parse_test.go index 3213518a..68daae17 100644 --- a/pkg/devfile/parse_test.go +++ b/pkg/devfile/parse_test.go @@ -230,8 +230,7 @@ spec: type: LoadBalancer ` uri := "127.0.0.1:8080" - var testServer *httptest.Server - testServer = httptest.NewUnstartedServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + testServer := httptest.NewUnstartedServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { var err error if strings.Contains(r.URL.Path, "/outerloop-deploy.yaml") { _, err = w.Write([]byte(outerloopDeployContent)) @@ -252,7 +251,7 @@ spec: // create a listener with the desired port. l, err := net.Listen("tcp", uri) if err != nil { - t.Errorf("Test_parseParentAndPluginFromURI() unexpected error while creating listener: %v", err) + t.Errorf("TestParseDevfileAndValidate() unexpected error while creating listener: %v", err) } // NewUnstartedServer creates a listener. Close that listener and replace