Open eric opened 10 years ago
@aphyr: Do you think there's anything we should do to solve this?
The (Thread/sleep 1001)
on line 43 took 3 seconds to complete instead of 1 second and caused the claim to be successful.
I'm trying to get to 100% consistently passing tests, but I am not sure how to best solve this one.
Best way is probably to virtualize time using the Riemann.time scheduler. I should extract that into its own library.
I love that idea. :+1:
https://travis-ci.org/eric/skuld/jobs/31091778
The reclaim tests are time-dependent and use
Thread/sleep
, which causes problems if the system that the tests are being run on is overloaded.