diff options
author | Wolfy-J <[email protected]> | 2018-06-23 17:29:12 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-23 17:29:12 +0300 |
commit | 9d56d4b4b4cf6ae407ffd77d1cee84c19e38a672 (patch) | |
tree | 5bd22be92d1282592f0fdd3226e52423cf643e45 | |
parent | acc6cee9e7faa5da0574723272c076cf1b77ce3f (diff) |
properly close
-rw-r--r-- | service/http/handler_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/service/http/handler_test.go b/service/http/handler_test.go index 4a11c562..904214f6 100644 --- a/service/http/handler_test.go +++ b/service/http/handler_test.go @@ -51,7 +51,7 @@ func TestServer_Echo(t *testing.T) { assert.NoError(t, st.rr.Start()) defer st.rr.Stop() - hs := &http.Server{Addr: ":8077", Handler: st} + hs := &http.Server{Addr: ":8177", Handler: st} defer hs.Shutdown(context.Background()) go func() { hs.ListenAndServe() }() @@ -686,7 +686,7 @@ func TestServer_Error(t *testing.T) { assert.NoError(t, st.rr.Start()) defer st.rr.Stop() - hs := &http.Server{Addr: ":8077", Handler: st} + hs := &http.Server{Addr: ":8177", Handler: st} defer hs.Shutdown(context.Background()) go func() { hs.ListenAndServe() }() @@ -720,7 +720,7 @@ func TestServer_Error2(t *testing.T) { assert.NoError(t, st.rr.Start()) defer st.rr.Stop() - hs := &http.Server{Addr: ":8077", Handler: st} + hs := &http.Server{Addr: ":8177", Handler: st} defer hs.Shutdown(context.Background()) go func() { hs.ListenAndServe() }() @@ -754,7 +754,7 @@ func TestServer_Error3(t *testing.T) { assert.NoError(t, st.rr.Start()) defer st.rr.Stop() - hs := &http.Server{Addr: ":8077", Handler: st} + hs := &http.Server{Addr: ":8177", Handler: st} defer hs.Shutdown(context.Background()) go func() { hs.ListenAndServe() }() @@ -799,7 +799,7 @@ func BenchmarkHandler_Listen_Echo(b *testing.B) { st.rr.Start() defer st.rr.Stop() - hs := &http.Server{Addr: ":8077", Handler: st} + hs := &http.Server{Addr: ":8177", Handler: st} defer hs.Shutdown(context.Background()) go func() { hs.ListenAndServe() }() |