MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / clearFaults

Function clearFaults

e2e/src/surfaces/autumn.ts:339–349  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337 });
338
339 const clearFaults = () =>
340 Effect.gen(function* () {
341 const response = yield* Effect.promise(() =>
342 fetch(`${autumnUrl}/_emulate/faults`, { method: "DELETE" }),
343 );
344 if (!response.ok) {
345 return yield* Effect.fail(
346 `autumn clear faults responded ${response.status}: ${yield* Effect.promise(() => response.text())}`,
347 );
348 }
349 });
350
351 const ledgerFor = (operationId: string) =>
352 Effect.gen(function* () {

Callers

nothing calls this directly

Calls 2

textMethod · 0.65
fetchFunction · 0.50

Tested by

no test coverage detected