fix tests

This commit is contained in:
John Smith 2023-06-22 18:31:31 -04:00
parent 337427f49b
commit dfc22aee8e
3 changed files with 7 additions and 23 deletions

View File

@ -146,17 +146,9 @@ impl Crypto {
{ {
let c = self.unlocked_inner.config.get(); let c = self.unlocked_inner.config.get();
for ck in VALID_CRYPTO_KINDS { for ck in VALID_CRYPTO_KINDS {
cache_validity_key.append( if let Some(nid) = c.network.routing_table.node_id.get(ck) {
&mut c cache_validity_key.append(&mut nid.value.bytes.to_vec());
.network }
.routing_table
.node_id
.get(ck)
.unwrap()
.value
.bytes
.to_vec(),
);
} }
}; };

View File

@ -351,17 +351,9 @@ impl RoutingTable {
{ {
let c = self.unlocked_inner.config.get(); let c = self.unlocked_inner.config.get();
for ck in VALID_CRYPTO_KINDS { for ck in VALID_CRYPTO_KINDS {
cache_validity_key.append( if let Some(nid) = c.network.routing_table.node_id.get(ck) {
&mut c cache_validity_key.append(&mut nid.value.bytes.to_vec());
.network }
.routing_table
.node_id
.get(ck)
.unwrap()
.value
.bytes
.to_vec(),
);
} }
for b in &c.network.routing_table.bootstrap { for b in &c.network.routing_table.bootstrap {
cache_validity_key.append(&mut b.as_bytes().to_vec()); cache_validity_key.append(&mut b.as_bytes().to_vec());

View File

@ -1580,7 +1580,7 @@ mod tests {
// //
assert_eq!( assert_eq!(
s.core.network.routing_table.bootstrap, s.core.network.routing_table.bootstrap,
vec!["bootstrap.dev.veilid.net".to_owned()] vec!["bootstrap.veilid.net".to_owned()]
); );
// //
assert_eq!(s.core.network.rpc.concurrency, 0); assert_eq!(s.core.network.rpc.concurrency, 0);