[infinispan-issues] [JBoss JIRA] (ISPN-2603) Intermittent test failure: AsyncAPITest
Mircea Markus (JIRA)
jira-events at lists.jboss.org
Thu Dec 6 14:28:17 EST 2012
Mircea Markus created ISPN-2603:
-----------------------------------
Summary: Intermittent test failure: AsyncAPITest
Key: ISPN-2603
URL: https://issues.jboss.org/browse/ISPN-2603
Project: Infinispan
Issue Type: Feature Request
Affects Versions: 5.2.0.Beta5
Reporter: Mircea Markus
Assignee: Mircea Markus
Fix For: 5.2.0.Beta6
AsyncAPITest.testAsyncMethodWithLifespanAndMaxIdle has this logic:
{code:java}
// 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!!
{code}
the test assumes that the first put(v3_ executes before the second one (v4) which is not correct.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list