Fix test failure in TopologyManagerImplTest#testNotifyNodeConnector 19/19019/1
authorTom Pantelis <tpanteli@brocade.com>
Thu, 23 Apr 2015 11:12:17 +0000 (07:12 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Thu, 23 Apr 2015 11:12:17 +0000 (07:12 -0400)
commita013010306558cabad08175d11230f7e3a192fb0
treeac2d71fab455ea389f47ed93359d046dbba62e5a
parent9f17976f66bc0d3b58bcb96f325a241e34871d54
Fix test failure in TopologyManagerImplTest#testNotifyNodeConnector

Saw a sporadic test failure on jenkins:

java.lang.AssertionError: expected:<2> but was:<1>
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.failNotEquals(Assert.java:743)
        at org.junit.Assert.assertEquals(Assert.java:118)
        at org.junit.Assert.assertEquals(Assert.java:555)
        at org.junit.Assert.assertEquals(Assert.java:542)
        at
org.opendaylight.controller.topologymanager.internal.TopologyManagerImplTest.testNotifyNodeConnector(TopologyManagerImplTest.java:835)

The test flushes the pending queue and does a 1 sec sleep before
asserting but that might not be enough time so I added a 5 sec loop to
verify the expected edges map size.

Change-Id: Id7deaab93888819b71c286ca85864068f4d5dac6
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/adsal/topologymanager/implementation/src/test/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImplTest.java