Introduce a TestClient and associate it with a PeerId

This makes it easier to integration test peer interactions because now we know their PeerIds.
This commit is contained in:
Nathan Sobo 2021-11-27 12:33:25 -07:00
parent b307a7e91d
commit 4bd43e67ef
3 changed files with 156 additions and 96 deletions

View file

@ -63,6 +63,7 @@ pub enum Event {
Closed,
}
#[derive(Debug)]
pub struct Collaborator {
pub user: Arc<User>,
pub peer_id: PeerId,