]
Adrian Nistor updated ISPN-5499:
--------------------------------
Fix Version/s: 8.0.0.CR1
(was: 8.0.0.Beta2)
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: 8.0.0.CR1
{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}