summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-23 17:30:44 +0300
committerWolfy-J <[email protected]>2018-06-23 17:30:44 +0300
commite170f8ab968db9746918c4abb731a7d9677e2ada (patch)
treea19180dc93d5446e0d5871e66a320683fecf7d55 /service
parent9d56d4b4b4cf6ae407ffd77d1cee84c19e38a672 (diff)
properly close
Diffstat (limited to 'service')
-rw-r--r--service/http/handler_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/service/http/handler_test.go b/service/http/handler_test.go
index 904214f6..59a4c7c0 100644
--- a/service/http/handler_test.go
+++ b/service/http/handler_test.go
@@ -57,7 +57,7 @@ func TestServer_Echo(t *testing.T) {
go func() { hs.ListenAndServe() }()
time.Sleep(time.Millisecond * 10)
- body, r, err := get("http://localhost:8077/?hello=world")
+ body, r, err := get("http://localhost:8177/?hello=world")
assert.NoError(t, err)
assert.Equal(t, 201, r.StatusCode)
assert.Equal(t, "WORLD", body)
@@ -692,7 +692,7 @@ func TestServer_Error(t *testing.T) {
go func() { hs.ListenAndServe() }()
time.Sleep(time.Millisecond * 10)
- _, r, err := get("http://localhost:8077/?hello=world")
+ _, r, err := get("http://localhost:8177/?hello=world")
assert.NoError(t, err)
assert.Equal(t, 500, r.StatusCode)
}
@@ -726,7 +726,7 @@ func TestServer_Error2(t *testing.T) {
go func() { hs.ListenAndServe() }()
time.Sleep(time.Millisecond * 10)
- _, r, err := get("http://localhost:8077/?hello=world")
+ _, r, err := get("http://localhost:8177/?hello=world")
assert.NoError(t, err)
assert.Equal(t, 500, r.StatusCode)
}
@@ -807,7 +807,7 @@ func BenchmarkHandler_Listen_Echo(b *testing.B) {
bb := "WORLD"
for n := 0; n < b.N; n++ {
- r, err := http.Get("http://localhost:8077/?hello=world")
+ r, err := http.Get("http://localhost:8177/?hello=world")
if err != nil {
b.Fail()
}