Skip to content

Commit

Permalink
Fix test_process_run_time
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 1, 2024
1 parent b04d3bc commit ec95f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ fn test_process_run_time() {
let current_pid = sysinfo::get_current_pid().expect("failed to get current pid");
s.refresh_process(current_pid);
let run_time = s.process(current_pid).expect("no process found").run_time();
std::thread::sleep(std::time::Duration::from_millis(1500));
std::thread::sleep(std::time::Duration::from_secs(2));
s.refresh_process(current_pid);
let new_run_time = s.process(current_pid).expect("no process found").run_time();
assert!(
Expand Down

0 comments on commit ec95f1d

Please sign in to comment.