MCPcopy
hub / github.com/coder/mux / readAttempts

Function readAttempts

src/node/services/taskService.test.ts:16366–16369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16364 expect(sendMessage).toHaveBeenCalledTimes(1);
16365
16366 const readAttempts = () =>
16367 Array.from(config.loadConfigOrDefault().projects.values())
16368 .flatMap((project) => project.workspaces)
16369 .find((workspace) => workspace.id === childId)?.taskRecoveryAttempts;
16370 expect(readAttempts()).toBe(1);
16371
16372 // Restart simulation: a fresh service instance keeps counting from disk

Callers 1

Calls 1

loadConfigOrDefaultMethod · 0.80

Tested by

no test coverage detected