mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 09:09:17 +00:00
node: increase heartbeat test wait time
heartbeat test
This commit is contained in:
@@ -547,12 +547,12 @@ mod tests {
|
|||||||
async move { node.run(token).await }
|
async move { node.run(token).await }
|
||||||
});
|
});
|
||||||
|
|
||||||
tokio::time::timeout(Duration::from_secs(2), notified)
|
tokio::time::timeout(2 * DNS_NODE_HEARTBEAT_INTERVAL, notified)
|
||||||
.await
|
.await
|
||||||
.expect("heartbeat failure should notify election");
|
.expect("heartbeat failure should notify election");
|
||||||
|
|
||||||
token.cancel();
|
token.cancel();
|
||||||
tokio::time::timeout(Duration::from_secs(2), handle)
|
tokio::time::timeout(Duration::from_secs(5), handle)
|
||||||
.await
|
.await
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user