Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Jan 19, 2024
1 parent 7c8027b commit 7eb30cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/system_stats/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ mod tests {
assert!(stats.total_memory > 0);
assert!(stats.used_memory > 0);
assert!(stats.used_memory < stats.total_memory);
assert!(stats.cpu_usage > 0.0);
assert!(stats.load_avg.one > 0.0);
assert!(stats.load_avg.five > 0.0);
assert!(stats.load_avg.fifteen > 0.0);
assert!(stats.cpu_usage >= 0.0);
assert!(stats.load_avg.one >= 0.0);
assert!(stats.load_avg.five >= 0.0);
assert!(stats.load_avg.fifteen >= 0.0);
}

#[tokio::test]
Expand Down

0 comments on commit 7eb30cf

Please sign in to comment.