Skip to content

Commit 6a6f7e3

Browse files
committed
Replace dummy advance with yield_now to better express its purpose
1 parent 8fcc7e7 commit 6a6f7e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/hotfix/tests/session_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async fn test_heartbeats() {
3737
.await;
3838
// counterparty responds with a logon to establish a happy session
3939
mock_counterparty.send_logon().await;
40-
tokio::time::advance(std::time::Duration::from_millis(5)).await;
40+
tokio::task::yield_now().await;
4141

4242
// let's wait enough time for a heartbeat and assert that the heartbeat was sent
4343
tokio::time::advance(std::time::Duration::from_secs(HEARTBEAT_INTERVAL + 1)).await;

0 commit comments

Comments
 (0)