[asterisk-bugs] [JIRA] (ASTERISK-24103) Testsuite - SIPpTestCase modules report success on reactor timeout.

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Jul 22 17:46:58 CDT 2014


Rusty Newton created ASTERISK-24103:
---------------------------------------

             Summary: Testsuite - SIPpTestCase modules report success on reactor timeout.
                 Key: ASTERISK-24103
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24103
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Tests/testsuite
            Reporter: Jonathan Rose


Suppose we have a SIPpTestCase as the only module of a test. The SIPp scenario that it runs sends Asterisk a message of some sort and then waits for a response, but the response never arrives and the scenario waits until Reactor times out.

At this point, we expect the test to fail since the scenario didn't complete successfully. However, at reactor timeout SIPp scenarios are manually shut down, and when they do, they trigger the processEnded function in SIPpProtocol. SIPp's exit code is the same for early termination as it is for successful completion, so we can't really distinguish whether the test was successful or if it was terminated by the reactor timeout based on exitcode alone. At the moment, we are trying to do so and this means that reactor timeouts are tripping this function and setting the test to passed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list