MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / make_runner

Function make_runner

fendermint/testing/materializer/src/docker/node.rs:710–726  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

708 use bollard::Docker;
709
710 fn make_runner() -> DockerRunner<NodeName> {
711 let nn = TestnetName::new("test-network").root().node("test-node");
712 let docker = Docker::connect_with_local_defaults().expect("failed to connect to docker");
713 let (_drop_handle, drop_chute) = dropper::start(docker.clone());
714 let drop_policy = DropPolicy::EPHEMERAL;
715
716 DockerRunner::new(
717 docker,
718 drop_chute,
719 drop_policy,
720 nn,
721 0,
722 COMETBFT_IMAGE,
723 Vec::new(),
724 None,
725 )
726 }
727
728 #[tokio::test]
729 async fn test_docker_run_output() {

Callers 3

get_or_createMethod · 0.85
test_docker_run_outputFunction · 0.85
test_docker_run_errorFunction · 0.85

Calls 3

startFunction · 0.70
nodeMethod · 0.45
rootMethod · 0.45

Tested by 2

test_docker_run_outputFunction · 0.68
test_docker_run_errorFunction · 0.68