[
https://issues.jboss.org/browse/ISPN-5499?page=com.atlassian.jira.plugin....
]
Dan Berindei resolved ISPN-5499.
--------------------------------
Fix Version/s: 9.1.0.Final
(was: 9.2.0.Final)
Resolution: Out of Date
No longer failing in 9.1.0, even with the change suggested in the description.
SizeTest.testPersistentDistributedCacheSize random failures
-----------------------------------------------------------
Key: ISPN-5499
URL:
https://issues.jboss.org/browse/ISPN-5499
Project: Infinispan
Issue Type: Bug
Components: Test Suite - Server
Affects Versions: 7.2.1.Final
Reporter: Dan Berindei
Priority: Blocker
Labels: testsuite_stability
Fix For: 9.1.0.Final
{noformat}
16:04:28,678 ERROR (testng-SizeTest:) [UnitTestTestNGListener] Test
testPersistentDistributedCacheSize(org.infinispan.client.hotrod.SizeTest) failed.
java.lang.AssertionError: expected:<20> but was:<38>
at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364)
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80)
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:245)
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:252)
at
org.infinispan.client.hotrod.SizeTest.testPersistentDistributedCacheSize(SizeTest.java:59)
{noformat}
I have been able to make the test fail reliably by replacing the assertion on line 57
with this:
{code}
for (int i = 0; i < SIZE; i++) {
assertEquals(SIZE, clients.get(0).getCache(cacheName).size());
}
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)