Closed johnynek closed 8 years ago
[info] + MutableTTLCache.If insert an item with a TTL of X, and wait X + delta then it cannot be there: OK, passed 100 tests. [info] ! MutableTTLCache.if you put with TTL t, and wait 0 time, it should always (almost, except due to scheduling) be in there: Falsified after 84 passed tests. [info] > ARG_0: NegativeTTLTime(198) [info] > ARG_1: List("-9223372036854775808", "8940737125452007113", "1", "1", "1", "-1896880991015979350", "-7531907913363264011", "-6027738828174692079", "9223372036854775807", "2367074110639900453", "-1", "1", "-1", "-9223372036854775808", "0", "-1", "-1821740612873051777", "3634317783112317616", "8943690961484358833", "6792679989299483815", "0", "-8822818761108470633", "-418228414778182916", "-4866276685759718961", "1230819134332512453", "-910005076134620461") [info] + Cache.MapCache obeys the cache laws: OK, passed 100 tests. [info] + Cache.MapCache never evicts: OK, passed 100 tests. [info] + Cache.LRUCache obeys the cache laws: OK, passed 100 tests. [info] + Cache.LIRSCache obeys the cache laws: OK, passed 100 tests. [info] + Cache.TTLCache obeys the cache laws: OK, passed 100 tests. [info] ScalaTest [info] Run completed in 12 seconds, 97 milliseconds. [info] Total number of tests run: 7 [info] Suites: completed 5, aborted 0 [info] Tests: succeeded 7, failed 0, canceled 0, ignored 0, pending 0 [info] All tests passed. [error] Failed: Total 16, Failed 1, Errors 0, Passed 15 [error] Failed tests: [error] com.twitter.storehaus.cache.MutableTTLCacheProperties
Saved the best for last! I'll investigate this weekend (and hopefully come up with a solution that works).