File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -641,10 +641,10 @@ mod tests {
641641 assert ! ( time_existing >= Duration :: from_millis( 90 ) ) ; // Allow small margin
642642 assert ! ( time_nonexistent >= Duration :: from_millis( 90 ) ) ;
643643
644- // The times should be roughly similar (within 50ms margin)
644+ // The times should be roughly similar (within 100ms margin for CI environments )
645645 let diff = time_existing. abs_diff ( time_nonexistent) ;
646646 assert ! (
647- diff < Duration :: from_millis( 50 ) ,
647+ diff < Duration :: from_millis( 100 ) ,
648648 "Timing difference too large: {:?}" ,
649649 diff
650650 ) ;
Original file line number Diff line number Diff line change @@ -1266,7 +1266,8 @@ mod tests {
12661266 let handler = SshHandler :: new ( Some ( test_addr ( ) ) , test_config ( ) , test_sessions ( ) ) ;
12671267
12681268 assert_eq ! ( handler. peer_addr( ) , Some ( test_addr( ) ) ) ;
1269- assert ! ( handler. session_id( ) . is_none( ) ) ;
1269+ // Session ID is assigned at creation time
1270+ assert ! ( handler. session_id( ) . is_some( ) ) ;
12701271 assert ! ( !handler. is_authenticated( ) ) ;
12711272 assert ! ( handler. username( ) . is_none( ) ) ;
12721273 }
@@ -1328,7 +1329,8 @@ mod tests {
13281329 let handler = SshHandler :: new ( None , test_config ( ) , test_sessions ( ) ) ;
13291330
13301331 assert ! ( handler. peer_addr( ) . is_none( ) ) ;
1331- assert ! ( handler. session_id( ) . is_none( ) ) ;
1332+ // Session ID is assigned at creation time even without peer address
1333+ assert ! ( handler. session_id( ) . is_some( ) ) ;
13321334 assert ! ( !handler. is_authenticated( ) ) ;
13331335 }
13341336
You can’t perform that action at this time.
0 commit comments