Your code involves some delayed operations that depend on the system clock. How could we make them better testable without having long running tests?
Sigiloso
very open question I should say. You can mock the class, trick the LD_PRELOAD, patch the kernel...