genofire/hs_monolith
genofire
/
hs_monolith
Archived
1
0
Fork 0

[TASK] real status message

This commit is contained in:
Martin Geno 2017-03-26 20:11:09 +02:00
parent 5f305761b1
commit 0a81ae70d4
No known key found for this signature in database
GPG Key ID: F0D39A37E925E941
2 changed files with 2 additions and 2 deletions

View File

@ -7,5 +7,5 @@ import (
) )
func statusHandler(w http.ResponseWriter, r *http.Request) { func statusHandler(w http.ResponseWriter, r *http.Request) {
lib.Write(w, "hello world") lib.Write(w, "running")
} }

View File

@ -14,6 +14,6 @@ func TestStatus(t *testing.T) {
result, w := session.JSONRequest("GET", "/api/status", nil) result, w := session.JSONRequest("GET", "/api/status", nil)
assertion.Equal(http.StatusOK, w.StatusCode) assertion.Equal(http.StatusOK, w.StatusCode)
assertion.Equal("hello world", result) assertion.Equal("running", result)
} }