We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9c9c84 commit 40a5f19Copy full SHA for 40a5f19
1 file changed
crates/hotfix/tests/session_tests.rs
@@ -37,7 +37,7 @@ async fn test_heartbeats() {
37
.await;
38
// counterparty responds with a logon to establish a happy session
39
mock_counterparty.send_logon().await;
40
- tokio::time::advance(std::time::Duration::from_millis(5)).await;
+ tokio::task::yield_now().await;
41
42
// let's wait enough time for a heartbeat and assert that the heartbeat was sent
43
tokio::time::advance(std::time::Duration::from_secs(HEARTBEAT_INTERVAL + 1)).await;
0 commit comments