From d308ebc324793acd486de4701b2fa3748e66d6b8 Mon Sep 17 00:00:00 2001 From: John Smith Date: Fri, 16 Jun 2023 14:23:36 -0400 Subject: [PATCH] fix tests --- .../tests/test_serialize_routing_table.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/veilid-core/src/routing_table/tests/test_serialize_routing_table.rs b/veilid-core/src/routing_table/tests/test_serialize_routing_table.rs index 5bf624aa..5f06866e 100644 --- a/veilid-core/src/routing_table/tests/test_serialize_routing_table.rs +++ b/veilid-core/src/routing_table/tests/test_serialize_routing_table.rs @@ -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,