[infinispan-issues] [JBoss JIRA] (ISPN-2603) Intermittent test failure: AsyncAPITest

Mircea Markus (JIRA) jira-events at lists.jboss.org
Fri Dec 14 12:43:17 EST 2012


     [ https://issues.jboss.org/browse/ISPN-2603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mircea Markus resolved ISPN-2603.
---------------------------------

    Resolution: Done


Fixed as part of ISPN-2552
                
> 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
>              Labels: test
>             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