adding liveness section in documentation

This commit is contained in:
Julien Neuhart
2019-01-03 15:56:53 +01:00
parent affd1c45ca
commit 7bcc3d081e
4 changed files with 34 additions and 5 deletions

View File

@@ -12,9 +12,7 @@ import (
func TestPing(t *testing.T) {
req := httptest.NewRequest(http.MethodGet, "/ping", nil)
rec := httptest.NewRecorder()
e := echo.New()
_ = e.NewContext(req, rec)
assert.Equal(t, http.StatusOK, rec.Code)
}