(workos: EmulatorClient, armed: ArmedFault)
| 199 | * untouched, and a scenario asserting only "the call worked" would pass |
| 200 | * without ever exercising the retry it claims to cover. */ |
| 201 | const faultsServed = (workos: EmulatorClient, armed: ArmedFault): Effect.Effect<number> => |
| 202 | Effect.promise(async () => { |
| 203 | const entries = await workos.ledger.list(200); |
| 204 | return entries.filter((entry) => entry.faultId === armed.id).length; |
| 205 | }); |
| 206 | |
| 207 | /** Keep the vault's version-checked writes losing for a WINDOW of time that |
| 208 | * starts at the first collision the product actually suffers — a peer writer |
no test coverage detected