node: Add support for multiple address types

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-09-13 10:16:05 +02:00
parent 92f17d71c3
commit b78bbc4ecc
3 changed files with 49 additions and 7 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ fn test_handshake_invalid_timestamp() {
alice.connected(bob.addr(), &local, Link::Inbound);
alice.receive(
&bob.addr(),
Message::hello(alice.timestamp() - time_delta, bob.git_url()),
Message::hello(alice.timestamp() - time_delta, vec![], bob.git_url()),
);
assert_matches!(alice.outbox().next(), Some(Io::Disconnect(addr, _)) if addr == bob.addr());
}