fix(delivery-queue): align test assertion and JSDoc with 'next startup' log message

This commit is contained in:
Stephen Schoettler 2026-03-01 20:49:04 -08:00
parent d8876ec76b
commit ce864cdb6e
2 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ export async function recoverPendingDeliveries(opts: {
log: RecoveryLogger;
cfg: OpenClawConfig;
stateDir?: string;
/** Maximum wall-clock time for recovery in ms. Remaining entries are deferred to next restart. Default: 60 000. */
/** Maximum wall-clock time for recovery in ms. Remaining entries are deferred to next startup. Default: 60 000. */
maxRecoveryMs?: number;
}): Promise<RecoverySummary> {
const pending = await loadPendingDeliveries(opts.stateDir);

View File

@ -445,7 +445,7 @@ describe("delivery-queue", () => {
expect(remaining).toHaveLength(3);
// Should have logged a warning about deferred entries.
expect(log.warn).toHaveBeenCalledWith(expect.stringContaining("deferred to next restart"));
expect(log.warn).toHaveBeenCalledWith(expect.stringContaining("deferred to next startup"));
});
it("defers entries until backoff becomes eligible", async () => {