mirror of
https://github.com/astaxie/beego.git
synced 2024-11-21 21:30:54 +00:00
refacted cache health check from toolbox
This commit is contained in:
parent
e0f8c6832d
commit
728bf34006
@ -187,7 +187,6 @@ func TestBuildHealthCheckResponseList(t *testing.T) {
|
||||
func TestHealthCheckHandlerReturnsJSON(t *testing.T) {
|
||||
|
||||
toolbox.AddHealthCheck("database", &SampleDatabaseCheck{})
|
||||
toolbox.AddHealthCheck("cache", &SampleCacheCheck{})
|
||||
|
||||
req, err := http.NewRequest("GET", "/healthcheck?json=true", nil)
|
||||
if err != nil {
|
||||
@ -213,11 +212,6 @@ func TestHealthCheckHandlerReturnsJSON(t *testing.T) {
|
||||
"message":"database",
|
||||
"name":"success",
|
||||
"status":"OK"
|
||||
},
|
||||
{
|
||||
"message":"cache",
|
||||
"name":"error",
|
||||
"status":"no cache detected"
|
||||
}
|
||||
]
|
||||
`)
|
||||
|
Loading…
Reference in New Issue
Block a user