I'm seeing intermittent test failures in
SQSErrorRetryHandlerTest.testQueueDeletedRecentlyRetriesWhen59SleepsAndTries
on Windows, where
watch.stop().elapsedTime(TimeUnit.MILLISECONDS)
returns 99 even though the method is expected to sleep for 100ms or
more. Guess this is due to the "precision and accuracy of system
timers and schedulers" referred to in the docs [1].
Would it make sense to relax the assertion to something like
// allow for slightly inaccurate system timers
assertTrue(elapsedTime >= 98);
in order to deal with this?
ap
[1]
http://docs.oracle.com/javase/6/docs/api/java/lang/Thread.html#sleep(long)