Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
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.
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.