From 728bf340064803d5ace628c07f715a2532c1311c Mon Sep 17 00:00:00 2001 From: Eyitayo Ogunbiyi Date: Tue, 7 Jul 2020 16:46:59 +0100 Subject: [PATCH] refacted cache health check from toolbox --- admin_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/admin_test.go b/admin_test.go index 24da3a2b..d9a66b34 100644 --- a/admin_test.go +++ b/admin_test.go @@ -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" } ] `)