@@ -282,7 +282,7 @@ impl PdshCli {
282282 // Map -t to --connect-timeout
283283 connect_timeout : self . connect_timeout . unwrap_or ( 30 ) ,
284284 // Map -u to --timeout
285- timeout : self . command_timeout . unwrap_or ( 300 ) ,
285+ timeout : self . command_timeout ,
286286 // Map -N to --no-prefix
287287 no_prefix : self . no_prefix ,
288288 // Map -b to --batch
@@ -526,7 +526,7 @@ mod tests {
526526 // Connect timeout
527527 assert_eq ! ( bssh_cli. connect_timeout, 60 ) ;
528528 // Command timeout
529- assert_eq ! ( bssh_cli. timeout, 600 ) ;
529+ assert_eq ! ( bssh_cli. timeout, Some ( 600 ) ) ;
530530 // No prefix flag
531531 assert ! ( bssh_cli. no_prefix) ;
532532 // Batch flag
@@ -547,8 +547,8 @@ mod tests {
547547
548548 // Default connect timeout (30s)
549549 assert_eq ! ( bssh_cli. connect_timeout, 30 ) ;
550- // Default command timeout (300s)
551- assert_eq ! ( bssh_cli. timeout, 300 ) ;
550+ // Default command timeout (None - will use config or 300s default )
551+ assert_eq ! ( bssh_cli. timeout, None ) ;
552552 // Default parallel (32 from pdsh fanout)
553553 assert_eq ! ( bssh_cli. parallel, 32 ) ;
554554 // Default strict host key checking
0 commit comments