node: increase heartbeat test wait time

heartbeat test
This commit is contained in:
Luna Yao
2026-04-29 18:14:03 +02:00
parent b7677031cb
commit 480677f085
+2 -2
View File
@@ -547,12 +547,12 @@ mod tests {
async move { node.run(token).await }
});
tokio::time::timeout(Duration::from_secs(2), notified)
tokio::time::timeout(2 * DNS_NODE_HEARTBEAT_INTERVAL, notified)
.await
.expect("heartbeat failure should notify election");
token.cancel();
tokio::time::timeout(Duration::from_secs(2), handle)
tokio::time::timeout(Duration::from_secs(5), handle)
.await
.unwrap()
.unwrap();