Skip to content

Commit

Permalink
Fix problem with http server
Browse files Browse the repository at this point in the history
  • Loading branch information
kramerul committed Jan 8, 2020
1 parent f7e37c9 commit 7ef3a4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/shalm/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package shalm

import (
"io/ioutil"
"net"
"net/http"
"path"
"path/filepath"
Expand Down Expand Up @@ -48,6 +49,13 @@ var _ = Describe("OCIRepo", func() {
})

go http.ListenAndServe("127.0.0.1:8675", nil)
for {
con, err := net.Dial("tcp", "127.0.0.1:8675")
if err == nil {
con.Close()
break
}
}
chart, err := repo.Get(thread, "http://localhost:8675/mariadb.tgz", WithNamespace("namespace"))
Expect(err).ToNot(HaveOccurred())
Expect(chart.GetName()).To(Equal("mariadb"))
Expand Down

0 comments on commit 7ef3a4d

Please sign in to comment.