-
Bug
-
Resolution: Done
-
Major
-
14.0.19.Final, 15.0.0.Final
-
None
Failure:
ERROR (testng-XSiteMBeanTest) [org.infinispan.commons.test.TestSuiteProgress] Test failed: org.infinispan.jmx.XSiteMBeanTest.testRequestsSent java.lang.AssertionError: Wrong attribute value for REQ_SENT expected:<1> but was:<2> at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.14.3.jar:?] at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364) ~[testng-6.14.3.jar:?] at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80) ~[testng-6.14.3.jar:?] at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:170) ~[testng-6.14.3.jar:?] at org.infinispan.jmx.XSiteMBeanTest.assertAttribute(XSiteMBeanTest.java:87) ~[test-classes/:?] at org.infinispan.jmx.XSiteMBeanTest.testRequestsSent(XSiteMBeanTest.java:164) ~[test-classes/:?]
Reason: the previous test method, testRequestsReceived, is interfering with the statistics. It waits for the receiving site to receive and update its statistics but never waits for the sender to update its statistics. Added waits in all the methods in an effort to prevent random failures.