uptime: fix "unused import" warnings in test file

This commit is contained in:
Daniel Hofstetter
2026-02-02 11:35:12 +01:00
parent 2319a99057
commit f61dd401f0
+3 -3
View File
@@ -6,9 +6,7 @@
// spell-checker:ignore wincode serde utmp runlevel testusr testx boottime
#![allow(clippy::cast_possible_wrap, clippy::unreadable_literal)]
use uutests::at_and_ucmd;
use uutests::util::TestScenario;
use uutests::{new_ucmd, util_name};
use uutests::{at_and_ucmd, new_ucmd};
use regex::Regex;
@@ -47,6 +45,8 @@ fn test_uptime_for_file_without_utmpx_records() {
#[test]
#[cfg(all(unix, feature = "cp"))]
fn test_uptime_with_fifo() {
use uutests::{util::TestScenario, util_name};
// This test can go on forever in the CI in some cases, might need aborting
// Sometimes writing to the pipe is broken
let ts = TestScenario::new(util_name!());