NorskManager.createMockNode() method

Provision a node from the in-process mock provider’s URL pool (NORSK_MOCK_WORKER_URLS). Pops the next URL, raises Online with the supplied nodeId. Test-only — fails with ResourceExhausted if the pool is empty.

Signature:

createMockNode(nodeId: NodeId, tags?: {
        [key: string]: string;
    }): Promise<void>;

Parameters

Parameter Type Description

nodeId

NodeId

tags

{ [key: string]: string; }

(Optional)

Returns:

Promise<void>