Module utils

Source

Functionsยง

peer_ids
Maps an array of Rust node ids to an array of corresponding peer ids.
run_cluster
Runs the cluster for the specified period of time.
rust_nodes
Creates an iterator that creates Rust nodes in the cluster using specified configuration.
rust_nodes_from_config
Tries to create as many Rust nodes using the specified configuration to fill the resulting array.
rust_nodes_from_configs
Tries to create a Rust node for each configuration, returning an array of node ids, or an error.
rust_nodes_from_default_config
Tries to create as many Rust nodes using the default configuration to fill the resulting array.
try_run_cluster
Tries to run the cluster for the specified period of time, returning Err if error event happens.
try_wait_for_all_node_peer
Tries to wait for particular event to happen for all specified pairs of (node, peer_id).
try_wait_for_all_nodes_to_connect
Tries to run the cluster for specified period of time, returning true early if for each specified pair of node id and peer id there was a succesfull connection.
try_wait_for_all_nodes_to_listen
Tries to run the cluster for the specified period of time, returning early true if the specified nodes are ready to accept connections.
try_wait_for_all_nodes_with_value
Tries to wait for particular event to happen at least once for all specified pairs of (node, v).
try_wait_for_nodes_to_connect
Tries to run the cluster for specified period of time, returning true early if for each specified pair of Rust node id and peer id there was a succesfull connection.
try_wait_for_nodes_to_listen
Tries to run the cluster for the specified period of time, returning early true if the specified nodes are ready to accept connections.
wait_for_all_nodes_to_connect
Runs the cluster for specified period of time, returning true early if for each specified pair of node id and peer id there was a succesfull connection.
wait_for_all_nodes_to_listen
Tries to run the cluster for the specified period of time, returning early true if the specified nodes are ready to accept connections.
wait_for_nodes_to_connect
Runs the cluster for specified period of time, returning true early if for each specified pair of Rust node id and peer id there was a succesfull connection.
wait_for_nodes_to_listen
Runs the cluster for the specified period of time, returning early true if the specified nodes are ready to accept connections.