File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -974,34 +974,3 @@ async fn test_read_large_file_bug() {
974
974
assert_eq ! ( stdout. len( ) , bs * count) ;
975
975
}
976
976
}
977
-
978
- #[ tokio:: test]
979
- #[ cfg_attr( not( ci) , ignore) ]
980
- async fn test_read_large_file_bug2 ( ) {
981
- for ( session, name) in connects_with_name ( ) . await {
982
- eprintln ! ( "Testing {name} implementation" ) ;
983
-
984
- let bs = 1024 ;
985
- let count = 20480 ;
986
-
987
- let file = tempfile ( ) . unwrap ( ) ;
988
-
989
- let status = session
990
- . shell ( format ! ( "dd if=/dev/zero bs={bs} count={count}" ) )
991
- . stdout ( Stdio :: from ( file. as_fd ( ) . try_clone_to_owned ( ) . unwrap ( ) ) )
992
- . spawn ( )
993
- . await
994
- . unwrap ( )
995
- . wait ( )
996
- . await
997
- . unwrap ( ) ;
998
-
999
- assert ! ( status. success( ) ) ;
1000
-
1001
- let mut stdout = Vec :: with_capacity ( bs * count) ;
1002
- ( & file) . read_to_end ( & mut stdout) . unwrap ( ) ;
1003
-
1004
- stdout. iter ( ) . copied ( ) . for_each ( |byte| assert_eq ! ( byte, 0 ) ) ;
1005
- assert_eq ! ( stdout. len( ) , bs * count) ;
1006
- }
1007
- }
You can’t perform that action at this time.
0 commit comments