[asterisk-commits] Fail sipp scenarios if a reactor timeout occurs (testsuite[master])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 5 07:17:48 CDT 2015


Anonymous Coward #1000019 has submitted this change and it was merged.

Change subject: Fail sipp scenarios if a reactor timeout occurs
......................................................................


Fail sipp scenarios if a reactor timeout occurs

ASTERISK-25363 #close
Reported by: Jonathon Rose
patches:
    sipp_test_fail_on_timeout.patch submitted by Jonathan Rose (license 6182)

Change-Id: Ia15a90df7545d43616a935efa1bab2fd0fb6d0aa
---
M lib/python/asterisk/sipp.py
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Anonymous Coward #1000019: Verified
  Matt Jordan: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved



diff --git a/lib/python/asterisk/sipp.py b/lib/python/asterisk/sipp.py
index 4e157b6..18043da 100644
--- a/lib/python/asterisk/sipp.py
+++ b/lib/python/asterisk/sipp.py
@@ -100,6 +100,10 @@
         self.register_intermediate_obverver(self._handle_scenario_finished)
         self.create_asterisk()
 
+    def on_reactor_timeout(self):
+        """Create a failure token when the test times out"""
+        self.create_fail_token("Reactor timed out. Test Failed.")
+
     def register_scenario_generator(self, generator):
         """Register a scenario generator object instead of using
         ConfigScenarioGenerator

-- 
To view, visit https://gerrit.asterisk.org/1366
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia15a90df7545d43616a935efa1bab2fd0fb6d0aa
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>



More information about the asterisk-commits mailing list