mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
test::common::util::read_size: prolong the sleep
This commit is contained in:
parent
5dba86dfa2
commit
e486fefa0f
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ impl UCommand {
|
||||||
pub fn read_size(child: &mut Child, size: usize) -> String {
|
pub fn read_size(child: &mut Child, size: usize) -> String {
|
||||||
let mut output = Vec::new();
|
let mut output = Vec::new();
|
||||||
output.resize(size, 0);
|
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();
|
child.stdout.as_mut().unwrap().read(output.as_mut_slice()).unwrap();
|
||||||
String::from_utf8(output).unwrap()
|
String::from_utf8(output).unwrap()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue