Skip to content

Commit 2fbbf8e

Browse files
committed
Fix test for Session::force_terminate
Wait for ssh multiplex master to cleanup and exit. Signed-off-by: Jiahao XU <[email protected]>
1 parent 9ac2c75 commit 2fbbf8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/openssh.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,9 @@ async fn test_detach_and_resume_process_mux() {
867867

868868
session2.force_terminate().await.unwrap();
869869

870+
// Wait for ssh multiplex master to clean up and exit.
871+
sleep(Duration::from_secs(3)).await;
872+
870873
assert!(!ctl.exists());
871874
}
872875
}
@@ -909,6 +912,9 @@ async fn test_detach_and_resume_native_mux() {
909912

910913
session2.force_terminate().await.unwrap();
911914

915+
// Wait for ssh multiplex master to clean up and exit.
916+
sleep(Duration::from_secs(3)).await;
917+
912918
assert!(!ctl.exists());
913919
}
914920
}

0 commit comments

Comments
 (0)