Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Timecop with Process.clock_gettime in spec
This test mocks the internals of Statsd (time sending a message to timing) Statsd no longer uses Time.now to determine the time, instead using Process.clock_gettime in order to compute monotonic time. More details: reinh/statsd#70. We therefore must update our test to mock the new call and also stub the constant Process::CLOCK_MONOTONIC. This is the same dependency on some Statsd internal behaviour, it just _looks_ more brittle. Timecop may support this in future: travisjeffery/timecop#220 (comment)
- Loading branch information