referrerpolicy=no-referrer-when-downgrade

Crate substrate_cli_test_utils

source ·

Structs§

Functions§

  • Builds the Substrate project using the provided arguments.
  • Extract NodeInfo from a running node by parsing its output.
  • Run the node for a while (3 blocks)
  • Run the given future and panic if the timeout is hit.
  • Starts a new Substrate node in development mode with a temporary chain.
  • Similar to crate::start_node spawns a node, but works in environments where the substrate binary is not accessible with cargo_bin("substrate-node"), and allows customising the args passed in.
  • Takes a readable tokio stream (e.g. from a child process ChildStderr or ChildStdout) and a Regex pattern, and checks each line against the given pattern as it is produced. The function returns OK(()) as soon as a line matching the pattern is found, or an Err if the stream ends without any lines matching the pattern.
  • Wait for at least n blocks to be finalized from a specified node