-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 1.1.0
-
Component/s: None
-
Labels:None
Occasionally, one of the BGP unit test fails with the following error:
Running org.onosproject.sdnip.bgp.BgpSessionManagerTest
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.496 sec <<< FAILURE! - in org.onosproject.sdnip.bgp.BgpSessionManagerTest
testBgpRoutePreference(org.onosproject.sdnip.bgp.BgpSessionManagerTest) Time elapsed: 0.099 sec <<< FAILURE!
java.lang.AssertionError:
Expected: BGP route entry lookup for entry "BgpRouteEntry{prefix=20.0.0.0/8, nextHop=10.20.30.41, bgpId=10.0.0.1, origin=IGP, asPath=AsPath{pathSegments=[PathSegment
but: was <[BgpRouteEntry{prefix=20.0.0.0/8, nextHop=10.20.30.41, bgpId=10.0.0.1, origin=IGP, asPath=AsPath{pathSegments=[PathSegment{type=AS_SEQUENCE, segmentAsNumbers=[65010, 65020, 65030]}
]}, localPref=20, multiExitDisc=30}]>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:865)
at org.junit.Assert.assertThat(Assert.java:832)
at org.onosproject.sdnip.bgp.BgpSessionManagerTest.testBgpRoutePreference(BgpSessionManagerTest.java:831)
There is no good way of reproducing it, it happens from time to time in the Jenkins runs.