Skip to content

Commit

Permalink
Merge pull request #7 from graphaelli/serve-local
Browse files Browse the repository at this point in the history
bind http server to localhost
  • Loading branch information
santhosh-tekuri committed Mar 29, 2018
2 parents 7fc2ab9 + 4bc7e8e commit 8b6ee27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema_test.go
Expand Up @@ -52,7 +52,7 @@ type testGroup struct {
}

func testFolder(t *testing.T, folder string, draft *jsonschema.Draft) {
server := &http.Server{Addr: ":1234", Handler: http.FileServer(http.Dir("testdata/remotes"))}
server := &http.Server{Addr: "localhost:1234", Handler: http.FileServer(http.Dir("testdata/remotes"))}
go func() {
if err := server.ListenAndServe(); err != http.ErrServerClosed {
t.Fatal(err)
Expand Down

0 comments on commit 8b6ee27

Please sign in to comment.