[OPNFLWPLUG-511] Unit test failure in testOnErrorMessage due to timing issues Created: 23/Jun/15  Updated: 27/Sep/21  Resolved: 01/Jul/15

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Abhijit Kumbhare Assignee: Michal Rehak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 3849

 Description   

The link for the unit test failure:
https://jenkins.opendaylight.org/releng/view/autorelease/job/autorelease-release-lithium/38/org.opendaylight.openflowplugin$openflowplugin/testReport/junit/org.opendaylight.openflowplugin.openflow.md.core/ConnectionConductorImplTest/testOnErrorMessage/ says:

Error Message

expected:<1> but was:<0>
Stacktrace

java.lang.AssertionError: expected:<1> but was:<0>
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.openflowplugin.openflow.md.core.ConnectionConductorImplTest.testOnErrorMessage(ConnectionConductorImplTest.java:610)

/**

  • Test method for
  • {@link org.opendaylight.openflowplugin.openflow.md.core.ConnectionConductorImpl#onExperimenterMessage(ExperimenterMessage)}
  • .

*

  • @throws InterruptedException

*/

@Test

public void testOnErrorMessage() throws InterruptedException {

simulateV13PostHandshakeState(connectionConductor);

ErrorMessageBuilder builder1 = new ErrorMessageBuilder();

builder1.setVersion((short) 4);

builder1.setCode(100);

connectionConductor.onErrorMessage(builder1.build());

synchronized (popListener)

{ popListener.wait(maxProcessingTimeout); }

>>>> Assert.assertEquals(1, errorMessageCounter);



 Comments   
Comment by Michal Rehak [ 23/Jun/15 ]

https://git.opendaylight.org/gerrit/#/c/23193/

Comment by Michal Rehak [ 01/Jul/15 ]

merged

Generated at Wed Feb 07 20:32:41 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.