We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e4bfcb commit 670c180Copy full SHA for 670c180
tests/by-util/test_ls.rs
@@ -1,6 +1,7 @@
1
use crate::common::util::*;
2
extern crate regex;
3
use self::regex::Regex;
4
+use std::{thread, time};
5
6
#[test]
7
fn test_ls_ls() {
@@ -91,6 +92,9 @@ fn test_ls_ls_tc() {
91
92
93
at.mkdir(dir);
94
at.touch(file_a);
95
+ // Wait for 10ms to be sure b is created after a
96
+ let ten_millis = time::Duration::from_millis(10);
97
+ thread::sleep(ten_millis);
98
at.touch(file_b);
99
100
let result = new_ucmd!().arg(at.plus(dir)).run();
0 commit comments