Uploaded image for project: 'OpenFlowPlugin'
  1. OpenFlowPlugin
  2. OPNFLWPLUG-511

Unit test failure in testOnErrorMessage due to timing issues

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 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);

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            michal.rehak Michal Rehak
            abhijit2511 Abhijit Kumbhare
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: