mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
sleep: use UResult (#2492)
* sleep: use UResult in util * sleep: add in error + test for it * sleep: UResult - removed some verbosity
This commit is contained in:
parent
35a9b7f1fb
commit
6c26976edb
2 changed files with 19 additions and 9 deletions
|
@ -110,3 +110,10 @@ fn test_sleep_sum_duration_many() {
|
|||
let duration = before_test.elapsed();
|
||||
assert!(duration >= millis_900);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_sleep_wrong_time() {
|
||||
new_ucmd!()
|
||||
.args(&["0.1s", "abc"])
|
||||
.fails();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue