Dlq Escalator.Test
Path:
loom-sprint-scaffold/loom/tests/dispatcher/dlq-escalator.test.tsRelative: loom/tests/dispatcher/dlq-escalator.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 151Bytes: 5,483Imports: 4Exports: 0has tests
Content Preview
- /**
- * Tests for DlqEscalator (H2.4).
- *
- * Proves:
- * - DLQ letter → escalation POST with correct payload (goal_id, stage_id, dispatch_id, attempts, last_error)
- * - poster failure retried ≥3 times then logged (exhaustion)
- * - successful escalation returns true
- * - exhausted escalation returns false
- */
- import { describe, expect, test, mock } from "bun:test";
- import { DlqEscalator } from "../../src/dispatcher/core/dlq-escalator";
- import type { EscalationPoster, EscalationPayload, DeadLetterB