Skip to content

Commit a30e59d

Browse files
committed
Rm test_read_large_file_bug2
Signed-off-by: Jiahao XU <[email protected]>
1 parent 5006c2a commit a30e59d

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

tests/openssh.rs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -974,34 +974,3 @@ async fn test_read_large_file_bug() {
974974
assert_eq!(stdout.len(), bs * count);
975975
}
976976
}
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-
}

0 commit comments

Comments
 (0)