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

Function armFault

e2e/cloud/credential-write-durability.test.ts:182–186  ·  view source on GitHub ↗
(workos: EmulatorClient, input: FaultArmInput)

Source from the content-addressed store, hash-verified

180/** Arm a fault on the shared emulator and take it back down with the scope, by
181 * id — a blanket `faults.clear()` would also disarm a neighbouring scenario's. */
182const armFault = (workos: EmulatorClient, input: FaultArmInput) =>
183 Effect.acquireRelease(
184 Effect.promise(() => workos.faults.arm(input)),
185 (armed) => Effect.promise(() => workos.faults.clear(armed.id)).pipe(Effect.ignore),
186 );
187
188/** How many responses this armed fault actually injected, read back from the
189 * emulator's ledger. This is the proof that the failure under test HAPPENED:

Callers 2

holdWritesInConflictFunction · 0.70

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected