diff --git a/main.go b/main.go index 02dfa19..dbcd6d6 100644 --- a/main.go +++ b/main.go @@ -55,10 +55,6 @@ func main() { } } - startHTTPServer(opt, log) -} - -func startHTTPServer(opt flags, log *log.Logger) { r := http.NewServeMux() // Handler, wrapped with middleware diff --git a/main_test.go b/main_test.go index 3eeccc8..df347d8 100644 --- a/main_test.go +++ b/main_test.go @@ -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()