tests(relay_peer_e2e_encryption): wait for the key of inst3 before ping test (#2069)

This commit is contained in:
Luna Yao
2026-04-15 13:39:00 +02:00
committed by GitHub
parent 3687519ef3
commit 6d319cba1d
+14
View File
@@ -3150,6 +3150,20 @@ pub async fn relay_peer_e2e_encryption(#[values("tcp", "udp")] proto: &str) {
.map(|i| i.noise_static_pubkey.len()) .map(|i| i.noise_static_pubkey.len())
); );
// Wait until relay route info includes inst3 static pubkey for IK handshake.
wait_for_condition(
|| async {
insts[0]
.get_peer_manager()
.get_peer_map()
.get_route_peer_info(inst3_peer_id)
.await
.is_some_and(|info| !info.noise_static_pubkey.is_empty())
},
Duration::from_secs(10),
)
.await;
// Test basic connectivity through relay // Test basic connectivity through relay
println!("Starting ping test from net_a to 10.144.144.3..."); println!("Starting ping test from net_a to 10.144.144.3...");