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

Function test_local_peer_id

p2p/tests/node.rs:126–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124
125#[tokio::test]
126async fn test_local_peer_id() -> Result<()> {
127 let test_runner = TestRunnerBuilder::new().build().await?;
128 let got_peer_id = test_runner.client.local_peer_id().await?;
129 assert_eq!(test_runner.peer_id, got_peer_id);
130 Ok(())
131}
132
133#[test(tokio::test(flavor = "multi_thread", worker_threads = 2))]
134async fn test_two_nodes() -> Result<()> {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
buildMethod · 0.45
local_peer_idMethod · 0.45

Tested by

no test coverage detected