diff --git a/ngrinder-controller/src/main/java/org/ngrinder/home/controller/HealthCheckApiController.java b/ngrinder-controller/src/main/java/org/ngrinder/home/controller/HealthCheckApiController.java index 989eec3557..f53caa42fb 100644 --- a/ngrinder-controller/src/main/java/org/ngrinder/home/controller/HealthCheckApiController.java +++ b/ngrinder-controller/src/main/java/org/ngrinder/home/controller/HealthCheckApiController.java @@ -64,19 +64,4 @@ public Map healthCheck(HttpServletResponse response) { map.put("regions", regionService.getAll()); return map; } - - /** - * Return health check message with 1 sec delay. If there is shutdown lock, - * it returns 503. Otherwise, it returns region lists. - * - * @param sleep in milliseconds. - * @param response response - * @return region list - */ - @GetMapping("/check/healthcheck_slow") - public Map healthCheckSlowly(@RequestParam(value = "delay", defaultValue = "1000") int sleep, - HttpServletResponse response) { - ThreadUtils.sleep(sleep); - return healthCheck(response); - } } diff --git a/ngrinder-controller/src/test/java/org/ngrinder/home/controller/HomeControllerTest.java b/ngrinder-controller/src/test/java/org/ngrinder/home/controller/HomeControllerTest.java index 8897dd6e29..091cd5ec2f 100644 --- a/ngrinder-controller/src/test/java/org/ngrinder/home/controller/HomeControllerTest.java +++ b/ngrinder-controller/src/test/java/org/ngrinder/home/controller/HomeControllerTest.java @@ -65,8 +65,7 @@ public void testHome() { @Test public void testHealthCheck() { MockHttpServletResponse res = new MockHttpServletResponse(); - healthCheckApiController.healthCheck(res); - Map message = healthCheckApiController.healthCheckSlowly(500, res); + Map message = healthCheckApiController.healthCheck(res); assertEquals(message.get("current"), regionService.getCurrent()); }