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@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)