boinkor-net / governor

A rate-limiting library for Rust (f.k.a. ratelimit_meter)
https://github.com/boinkor-net/governor
MIT License
579 stars 45 forks source link

Conditionalize-out the Instant::now test on M1 macs #115

Closed antifuchs closed 2 years ago

antifuchs commented 2 years ago

It's flaky, due to a change in clock resolution. As it's not extremely relevant to correctness, and really needs only run in CI (where we run it on linux machines).

Fixes #114

codecov[bot] commented 2 years ago

Codecov Report

Merging #115 (214130b) into master (c0e8bd3) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #115   +/-   ##
=======================================
  Coverage   97.49%   97.49%           
=======================================
  Files          30       30           
  Lines        2156     2157    +1     
=======================================
+ Hits         2102     2103    +1     
  Misses         54       54           
Impacted Files Coverage Δ
governor/src/clock/with_std.rs 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c0e8bd3...214130b. Read the comment docs.

antifuchs commented 2 years ago

bors merge

bors[bot] commented 2 years ago

Build succeeded: