forked from Shared/esg
Add health check and retry logic and circuit breaker
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { HealthService } from '../../src/health/health.service';
|
||||
|
||||
describe('HealthService', () => {
|
||||
it('provides safe defaults for memory and disk health checks', () => {
|
||||
const service = new HealthService();
|
||||
expect(service.heapThresholdBytes()).toBe(512 * 1024 * 1024);
|
||||
expect(service.diskThresholdPercent()).toBe(0.9);
|
||||
expect(service.diskPath()).toBe('/');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user