[infinispan-issues] [JBoss JIRA] (ISPN-7158) EmbeddedApplicationPublishedBridgeTest.testEventBridge random failures

Dan Berindei (JIRA) issues at jboss.org
Tue Nov 1 04:36:01 EDT 2016


Dan Berindei created ISPN-7158:
----------------------------------

             Summary: EmbeddedApplicationPublishedBridgeTest.testEventBridge random failures
                 Key: ISPN-7158
                 URL: https://issues.jboss.org/browse/ISPN-7158
             Project: Infinispan
          Issue Type: Bug
          Components: Spring Integration
            Reporter: Dan Berindei
            Assignee: Sebastian Łaskawiec
            Priority: Critical
             Fix For: 9.0.0.Beta1


{{TimeUnit.SECONDS.sleep(1)}} doesn't guarantee that the thread actually sleeps for a full second. And if it wakes up a millisecond too early, the entry is not expired by the time of the check:

{noformat}
java.lang.AssertionError: expected [null] but found [org.springframework.cache.support.SimpleValueWrapper at 7bbbe232]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotSame(Assert.java:490)
at org.testng.Assert.assertNull(Assert.java:426)
at org.testng.Assert.assertNull(Assert.java:415)
at org.infinispan.spring.session.InfinispanApplicationPublishedBridgeTCK.testEventBridge(InfinispanApplicationPublishedBridgeTCK.java:58)
at org.infinispan.spring.session.EmbeddedApplicationPublishedBridgeTest.testEventBridge(EmbeddedApplicationPublishedBridgeTest.java:59)
{noformat}

The test should use a {{TimeService}} to guarantee that the entry expires without having to wait so long.



--
This message was sent by Atlassian JIRA
(v7.2.2#72004)



More information about the infinispan-issues mailing list