/** * Test fixture: a hook that logs once and then works in silence, the shape * that celilo#622 is about (namecheap's ddns refresh logs per name, so one * slow upstream response is a long gap between log lines). * * Sleeps `ctx.config.silent_ms` so a test can put the silence on either side * of an idle bound. */ import { defineHook } from '@celilo/capabilities'; export default defineHook({ hook: 'container_created', requires: [], handler: async (ctx) => { ctx.logger.info('Starting, then going quiet'); await new Promise((r) => setTimeout(r, Number(ctx.config.silent_ms ?? 0))); }, });