Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. I initially updated our test to mock the new call and also stub the constant Process::CLOCK_MONOTONIC. But, this is the same dependency on some Statsd internal behaviour, it just _looked_ more brittle. Timecop may support this in future: travisjeffery/timecop#220 (comment) Instead, sleeping for 1 second doesn't also test rely on testing the internals of the Statsd gem.
- Loading branch information