• Martin Holst Swende's avatar
    metrics: improve TestTimerFunc (#20818) · 32d31c31
    Martin Holst Swende authored
    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.
    32d31c31
timer_test.go 2.56 KB