Skip to content

Commit

Permalink
Update Test log
Browse files Browse the repository at this point in the history
Signed-off-by: Maysun J Faisal <[email protected]>
  • Loading branch information
maysunfaisal committed Nov 20, 2023
1 parent f5ed8c8 commit f978ca4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/devfile/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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
Expand Down

0 comments on commit f978ca4

Please sign in to comment.