[infinispan-issues] [JBoss JIRA] (ISPN-7158) EmbeddedApplicationPublishedBridgeTest.testEventBridge random failures
Tristan Tarrant (JIRA)
issues at jboss.org
Mon Dec 5 16:38:07 EST 2016
[ https://issues.jboss.org/browse/ISPN-7158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tristan Tarrant updated ISPN-7158:
----------------------------------
Fix Version/s: 9.0.0.Beta2
(was: 9.0.0.Beta1)
> 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
> Labels: testsuite_stability
> Fix For: 9.0.0.Beta2
>
>
> {{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.3#72005)
More information about the infinispan-issues
mailing list