diff options
author | Wolfy-J <[email protected]> | 2018-06-14 22:56:19 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-14 22:56:19 +0300 |
commit | 082c329d9dc84453a02693119d954f60a4792b11 (patch) | |
tree | a2e2279576c84a157c278869ee84d9f8f42b7c20 /service/http/handler_test.go | |
parent | 5fef5b06e6261bc7c133380ef8b5bc8e63ac9fbe (diff) |
fmt
Diffstat (limited to 'service/http/handler_test.go')
-rw-r--r-- | service/http/handler_test.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/service/http/handler_test.go b/service/http/handler_test.go index d599b1d8..4a11c562 100644 --- a/service/http/handler_test.go +++ b/service/http/handler_test.go @@ -1,19 +1,19 @@ package http import ( - "net/http" - "io/ioutil" + "bytes" + "context" "github.com/spiral/roadrunner" - "testing" - "os" "github.com/stretchr/testify/assert" + "io/ioutil" + "mime/multipart" + "net/http" "net/url" + "os" + "runtime" "strings" - "context" - "bytes" - "mime/multipart" + "testing" "time" - "runtime" ) // get request and return body @@ -86,7 +86,7 @@ func TestServer_Headers(t *testing.T) { assert.NoError(t, st.rr.Start()) defer st.rr.Stop() - hs := &http.Server{Addr: ":8078", Handler: st,} + hs := &http.Server{Addr: ":8078", Handler: st} defer hs.Shutdown(context.Background()) go func() { hs.ListenAndServe() }() @@ -133,7 +133,7 @@ func TestServer_Cookies(t *testing.T) { assert.NoError(t, st.rr.Start()) defer st.rr.Stop() - hs := &http.Server{Addr: ":8079", Handler: st,} + hs := &http.Server{Addr: ":8079", Handler: st} defer hs.Shutdown(context.Background()) go func() { hs.ListenAndServe() }() @@ -184,7 +184,7 @@ func TestServer_JsonPayload_POST(t *testing.T) { assert.NoError(t, st.rr.Start()) defer st.rr.Stop() - hs := &http.Server{Addr: ":8090", Handler: st,} + hs := &http.Server{Addr: ":8090", Handler: st} defer hs.Shutdown(context.Background()) go func() { hs.ListenAndServe() }() @@ -326,7 +326,7 @@ func TestServer_FormData_POST(t *testing.T) { assert.NoError(t, st.rr.Start()) defer st.rr.Stop() - hs := &http.Server{Addr: ":8083", Handler: st,} + hs := &http.Server{Addr: ":8083", Handler: st} defer hs.Shutdown(context.Background()) go func() { hs.ListenAndServe() }() |