HomeSource World

metrics: improve TestTimerFunc (#20818)

Description

metrics: improve TestTimerFunc (#20818)

The test failed due to what appears to be fluctuations in time.Sleep, which is
not the actual method under test. This change modifies it so we compare the
metered Max to the actual time instead of the desired time.

Details

Provenance
Martin Holst Swende <martin@swende.se>Authored on Mar 31 2020, 1:01 PM
GitHub <noreply@github.com>Committed on Mar 31 2020, 1:01 PM
Parents
rGETH3b69c14f5d48: whisper/whisperv6: decrease pow requirement in tests (#20815)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETH32d31c31afdd: metrics: improve TestTimerFunc (#20818) (authored by Martin Holst Swende <martin@swende.se>).Mar 31 2020, 1:01 PM