MCPcopy Create free account
hub / github.com/ceramicnetwork/rust-ceramic / wait_bi_connected

Function wait_bi_connected

p2p/tests/node.rs:226–229  ·  view source on GitHub ↗

Waits until a emits event that it is connected to b and b emits an event that it is connected to a.

(a: &mut TestRunner, b: &mut TestRunner)

Source from the content-addressed store, hash-verified

224// Waits until a emits event that it is connected to b
225// and b emits an event that it is connected to a.
226async fn wait_bi_connected(a: &mut TestRunner, b: &mut TestRunner) {
227 wait_connected(a, b).await;
228 wait_connected(b, a).await;
229}
230// Waits until a emits event that it is connected to b
231// and b emits an event that it is connected to a.
232async fn wait_connected(a: &mut TestRunner, b: &mut TestRunner) {

Callers 2

test_two_nodesFunction · 0.85
test_three_nodesFunction · 0.85

Calls 1

wait_connectedFunction · 0.85

Tested by

no test coverage detected