davydovanton / sidekiq-statistic

See statistic about your workers
MIT License
797 stars 81 forks source link

Fix tests: Remove usage of before block together with Time.stub #167

Closed rbUUbr closed 3 years ago

rbUUbr commented 3 years ago

As far as we use let it lazy inits the metric. Also, in some tests we have before block. It calls metric before the test and do not allow to Time.stub block to be called before metric inits. I've removed before block to make the test works with Time.stub block @davydovanton looks like previous PR was merged without tests passed :(