Skip to main content
Defined in: testing/crash.ts:43 A DurabilityBackend that can be crashed (see crashable).

Extends

Properties

inbox

Defined in: durability/types.ts:321

Inherited from

DurabilityBackend.inbox

outbox

Defined in: durability/types.ts:322

Inherited from

DurabilityBackend.outbox

exclusive?

Defined in: durability/types.ts:327 true when only one process can use the backend at a time (memory, file). A restarted process then knows every lease of its instanceId is its own dead incarnation’s.

Inherited from

DurabilityBackend.exclusive

inner

Defined in: testing/crash.ts:45 The wrapped backend (what survives the crash).

crashed

Defined in: testing/crash.ts:47 True once crashed.

whenCrashed

Defined in: testing/crash.ts:49 Resolves when the crash happens.

calls

Defined in: testing/crash.ts:57 Number of calls of each operation so far.

Methods

start()?

Defined in: durability/types.ts:336 Called by bot.start() before anything is replayed.

Returns

Promise<void>

Inherited from

DurabilityBackend.start

stop()?

Defined in: durability/types.ts:338 Called by bot.stop() after the provider stopped.

Returns

Promise<void>

Inherited from

DurabilityBackend.stop

crash()

Defined in: testing/crash.ts:51 Crash now: every later call hangs forever.

Returns

void

crashBefore()

Defined in: testing/crash.ts:53 Crash when the nth (default 1st) call of op starts, before it reaches the backend.

Parameters

Returns

void

crashAfter()

Defined in: testing/crash.ts:55 Crash when the nth (default 1st) call of op committed, before its caller sees the result.

Parameters

Returns

void

scope()?

Defined in: testing/crash.ts:59 A crashable view of inner.scope(name) sharing this wrapper’s crash state and counters.

Parameters

Returns

CrashableBackend

Overrides

DurabilityBackend.scope