Skip to content

Commit 07a4399

Browse files
committed
uptime: move imports unused on Windows to test
1 parent 542e20e commit 07a4399

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/by-util/test_uptime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
#[cfg(not(any(windows, target_os = "openbsd", target_os = "freebsd")))]
1010
use uutests::at_and_ucmd;
11-
use uutests::util::TestScenario;
12-
use uutests::{new_ucmd, util_name};
11+
use uutests::new_ucmd;
1312

1413
use regex::Regex;
1514

@@ -52,6 +51,7 @@ fn test_uptime_for_file_without_utmpx_records() {
5251
#[test]
5352
#[cfg(all(unix, feature = "cp"))]
5453
fn test_uptime_with_fifo() {
54+
use uutests::{util::TestScenario, util_name};
5555
// This test can go on forever in the CI in some cases, might need aborting
5656
// Sometimes writing to the pipe is broken
5757
let ts = TestScenario::new(util_name!());

0 commit comments

Comments
 (0)