-
Enhancement
-
Resolution: Done
-
Major
-
5.2.0.Final
-
None
AsyncAPITest.testAsyncMethodWithLifespanAndMaxIdle has this logic:
// putIfAbsent lifespan only f = c.putAsync("k", "v3"); assertNull(f.get()); f = c.putIfAbsentAsync("k", "v4", 1000, TimeUnit.MILLISECONDS); markStartTime(); assert f != null; assert !f.isCancelled(); assertEquals("v3", f.get()); //here's the problem!!
the test assumes that the first put(v3_ executes before the second one (v4) which is not correct.
- is related to
-
ISPN-4463 AsyncAPITest.testAsyncMethodWithLifespanAndMaxIdle fails randomly
- Closed