Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tests protocol name
  • Loading branch information
tomaka committed Nov 18, 2020
commit 75062fc21ba0376e06d0c2e08a27f405c1543c18
2 changes: 1 addition & 1 deletion client/network/src/gossip/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ fn build_test_full_node(config: config::NetworkConfiguration)
(service, event_stream)
}

const PROTOCOL_NAME: Cow<'static, str> = Cow::Borrowed("foo");
const PROTOCOL_NAME: Cow<'static, str> = Cow::Borrowed("/foo");

/// Builds two nodes and their associated events stream.
/// The nodes are connected together and have the `PROTOCOL_NAME` protocol registered.
Expand Down
2 changes: 1 addition & 1 deletion client/network/src/service/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn build_test_full_node(config: config::NetworkConfiguration)
(service, event_stream)
}

const PROTOCOL_NAME: Cow<'static, str> = Cow::Borrowed("foo");
const PROTOCOL_NAME: Cow<'static, str> = Cow::Borrowed("/foo");

/// Builds two nodes and their associated events stream.
/// The nodes are connected together and have the `PROTOCOL_NAME` protocol registered.
Expand Down