mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
uptime: fix "unused import" warnings in test file
This commit is contained in:
@@ -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!());
|
||||
|
||||
Reference in New Issue
Block a user