[TASK] real status message
This commit is contained in:
parent
5f305761b1
commit
0a81ae70d4
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue