Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-15273

XSiteMBeanTest fails randomly

XMLWordPrintable

      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.

            pruivo@redhat.com Pedro Ruivo
            pruivo@redhat.com Pedro Ruivo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: