summaryrefslogtreecommitdiff
path: root/service/http/handler_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-13 20:49:26 +0300
committerWolfy-J <[email protected]>2018-06-13 20:49:26 +0300
commitfba45ff53a51bf173471e6d046fc46f0cbaf89e3 (patch)
tree0855eda2eb334d4d4f26157438649e0f58151f9d /service/http/handler_test.go
parent87fff670cc5a446f4c396c30d330ce7958e9f40f (diff)
http service test + status test
Diffstat (limited to 'service/http/handler_test.go')
-rw-r--r--service/http/handler_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/http/handler_test.go b/service/http/handler_test.go
index 0e236df0..98379117 100644
--- a/service/http/handler_test.go
+++ b/service/http/handler_test.go
@@ -58,7 +58,7 @@ func TestServer_Echo(t *testing.T) {
body, r, err := get("http://localhost:8077/?hello=world")
assert.NoError(t, err)
- assert.Equal(t, 200, r.StatusCode)
+ assert.Equal(t, 201, r.StatusCode)
assert.Equal(t, "WORLD", body)
}