• Bug
  • Status: Closed
  • Resolution: Fixed
  • drb
  • Reporter: sourceforgetracker
  • September 21, 2009
  • 0
  • Watchers: 0
  • September 22, 2009
  • September 22, 2009


When ant was running the Cache tests testExpiryBasedOnTimeToIdle and testExpiryBasedOnTimeToIdleAfterPutQuiet, assertNull(cache.get(“key1”)); always failed, and I notice a comment: //Now, getQuiet and check still times out 2 seconds after last get

There is a call to sleep(2001); just before this, I assume the cache is supposed to remove the element 2 seconds after a get. But there’s no guarantee that this will happen at exactly 2 seconds, the jvm could be (and probably is) doing something else, it only gets _scheduled_ at 2 secconds. I’ve upped the sleep time to 2010 to improve the chance of that thread having run before the assertion is checked.

This is a context diff rather than a unified diff, sorry if that’s a problem. Sourceforge Ticket ID: 982916 - Opened By: zacjacobson - 30 Jun 2004 18:22 UTC


Fiona OShea 2009-09-22

Re-opening so that I can properly close out these issues and have correct Resolution status in Jira