Skip to content

Commit

Permalink
pull back the startHTTP server function for now
Browse files Browse the repository at this point in the history
  • Loading branch information
syntaqx committed Jan 15, 2019
1 parent 5297aa8 commit d875cf2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
4 changes: 0 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ func main() {
}
}

startHTTPServer(opt, log)
}

func startHTTPServer(opt flags, log *log.Logger) {
r := http.NewServeMux()

// Handler, wrapped with middleware
Expand Down
17 changes: 0 additions & 17 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,6 @@ import (
"github.com/stretchr/testify/assert"
)

func TestStartHTTPServer(t *testing.T) {
t.Skip()

t.Parallel()

assert := assert.New(t)

opt := flags{Port: 0, Dir: "."}

var b bytes.Buffer
log := log.New(&b, "[test] ", 0)

go startHTTPServer(opt, log)

assert.Contains(b.String(), "http server listening at")
}

func TestLogger(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit d875cf2

Please sign in to comment.