Skip to content

Commit b52d319

Browse files
committed
Fix test no_route running for a minute
By setting timeout to `1s` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent a02da1a commit b52d319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/openssh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ async fn cannot_resolve() {
673673
async fn no_route() {
674674
let mut builder = SessionBuilder::default();
675675

676-
builder.connect_timeout(Duration::from_nanos(0));
676+
builder.connect_timeout(Duration::from_secs(1));
677677

678678
for err in session_builder_connects_err("192.0.2.1", builder).await {
679679
match err {

0 commit comments

Comments
 (0)