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