Skip to content

Commit 88ba377

Browse files
committed
fix(ci): remove useless unsigned comparison in timing tests
Remove useless comparison `time.as_millis() >= 0` in timing test. Since `as_millis()` returns u128 (unsigned), the comparison is always true and triggers `-D unused-comparisons` in CI. The test already validates upper bound with `<= 15` check, which is sufficient to ensure the traffic shaper timing is reasonable. Fixes CI failure on main branch.
1 parent 01296e2 commit 88ba377

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

crates/wraith-obfuscation/src/timing.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ mod tests {
419419
let time = shaper.time_until_next();
420420

421421
// Should be close to 10ms (1000ms / 100 pps)
422-
assert!(time.as_millis() >= 0);
423422
assert!(time.as_millis() <= 15);
424423
}
425424

0 commit comments

Comments
 (0)