fix tests

This commit is contained in:
John Smith 2023-06-16 14:23:36 -04:00
parent 9ffcc0da87
commit d308ebc324

View File

@ -83,8 +83,16 @@ pub async fn test_routingtable_buckets_round_trip() {
}
pub async fn test_round_trip_peerinfo() {
let mut tks = TypedKeySet::new();
tks.add(TypedKey::new(
CRYPTO_KIND_VLD0,
CryptoKey::new([
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0,
]),
));
let pi: PeerInfo = PeerInfo::new(
TypedKeySet::new(),
tks,
SignedNodeInfo::Direct(SignedDirectNodeInfo::new(
NodeInfo::new(
NetworkClass::OutboundOnly,