Fix for bug ONOS-959: BgpSessionManagerTest unit test failure
Previously, when checking the winning BGP routes, we expect-and-wait until the size of the table with the winning routes has certain size, and then we verify whether it contains a particular value. This is error-prone and time-sensitive. For example, if we are testing whether a particular route from one BGP peer is replaced with the same route from another BGP peer, the test might fail because the table size doesn't change. Modified the unit test to expect-and-wait until the expected route is received. Also, fixed some of the paragraph tags in some of the Javadocs. Change-Id: Ia96dc7c412e78bbc9279dd935dec6919096adeb3
Showing
1 changed file
with
50 additions
and
14 deletions
-
Please register or login to post a comment