Skip to content

@pumpkin-plugins/port-mapping API / testing/fake-network / runSteps

Function: runSteps() ​

runSteps<T>(net, steps, stepMs?, limitMs?): T

Defined in: tools/port-mapping/src/testing/fake-network.ts:152

Runs steps to the end on a fake network, moving its clock forward between steps.

Type Parameters ​

T ​

T

Parameters ​

net ​

FakeNetwork

steps ​

Steps<T>

stepMs? ​

number = 10

How far the clock moves after each step.

limitMs? ​

number = 120_000

Gives up after this much fake time.

Returns ​

T

Throws ​

What the steps threw, or a timeout.

Pumpkin Plugins documentation