bump version to v2.2.2

This commit is contained in:
sijie.sun
2025-02-09 22:13:26 +08:00
committed by Sijie.Sun
parent 0caec3e4da
commit dd5b00faf4
29 changed files with 32 additions and 14 deletions

View File

@@ -580,13 +580,15 @@ pub mod tests {
)
.await;
println!("start punching {:?}", p_a.list_routes().await);
wait_for_condition(
|| async {
wait_route_appear_with_cost(p_a.clone(), p_c.my_peer_id(), Some(1))
.await
.is_ok()
},
Duration::from_secs(5),
Duration::from_secs(10),
)
.await;
println!("{:?}", p_a.list_routes().await);

View File

@@ -520,12 +520,13 @@ pub async fn proxy_three_node_disconnect_test(#[values("tcp", "wg")] proto: &str
}));
wait_for_condition(
|| async {
insts[0]
insts[2]
.get_peer_manager()
.list_routes()
.get_peer_map()
.list_peers_with_conn()
.await
.iter()
.find(|r| r.peer_id == inst4.peer_id())
.find(|r| **r == inst4.peer_id())
.is_none()
},
// 0 down, assume last packet is recv in -0.01
@@ -534,6 +535,21 @@ pub async fn proxy_three_node_disconnect_test(#[values("tcp", "wg")] proto: &str
Duration::from_secs(11),
)
.await;
wait_for_condition(
|| async {
insts[0]
.get_peer_manager()
.list_routes()
.await
.iter()
.find(|r| r.peer_id == inst4.peer_id())
.is_none()
},
Duration::from_secs(7),
)
.await;
set_link_status("net_d", true);
}
});