1
0
espelhamento de https://github.com/astaxie/beego.git sincronizado 2025-07-17 18:52:16 +00:00

refacted cache health check from toolbox

Esse commit está contido em:
Eyitayo Ogunbiyi
2020-07-07 16:46:59 +01:00
commit 728bf34006

Ver arquivo

@@ -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"
}
]
`)