1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

test::common::util::read_size: prolong the sleep

This commit is contained in:
Knight 2016-06-17 22:45:35 +08:00
parent 5dba86dfa2
commit e486fefa0f

View file

@ -487,7 +487,7 @@ impl UCommand {
pub fn read_size(child: &mut Child, size: usize) -> String {
let mut output = Vec::new();
output.resize(size, 0);
sleep(Duration::from_millis(100));
sleep(Duration::from_secs(1));
child.stdout.as_mut().unwrap().read(output.as_mut_slice()).unwrap();
String::from_utf8(output).unwrap()
}