Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-10644

EventdIT test failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 25.0.0
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 45.288 sec <<< FAILURE! - in org.opennms.netmgt.eventd.EventdIT
      testNMS8919(org.opennms.netmgt.eventd.EventdIT)  Time elapsed: 7.052 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<1> but was:<13>
              at org.junit.Assert.fail(Assert.java:88)
              at org.junit.Assert.failNotEquals(Assert.java:834)
              at org.junit.Assert.assertEquals(Assert.java:118)
              at org.junit.Assert.assertEquals(Assert.java:144)
              at org.opennms.netmgt.eventd.EventdIT.testNMS8919(EventdIT.java:207)
      

      testNMS8919 is flaky. Depending on the order the tests run in, the nodeid in the event changes from 13 to 1.

      The fix is to not use `new Integer(1)`, but to use `node.getId()` to compare against.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ronald.roskens@biworldwide.com Ron Roskens
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: