[asterisk-commits] mjordan: testsuite/asterisk/trunk r4850 - /asterisk/trunk/tests/rest_api/chan...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 17 09:53:58 CDT 2014


Author: mjordan
Date: Mon Mar 17 09:53:53 2014
New Revision: 4850

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4850
Log:
originate_with_id: Move the deletion of the channel

This test was deleting the MyStasisId channel immediately upon StasisStart.
On some build agents, this would cause the channel to be deleted prior to the
state change event.

This change moves the deletion such that it occurs when the state change
occurs, ensuring that we receive all expected events.

Modified:
    asterisk/trunk/tests/rest_api/channels/originate_with_id/test-config.yaml

Modified: asterisk/trunk/tests/rest_api/channels/originate_with_id/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/channels/originate_with_id/test-config.yaml?view=diff&rev=4850&r1=4849&r2=4850
==============================================================================
--- asterisk/trunk/tests/rest_api/channels/originate_with_id/test-config.yaml (original)
+++ asterisk/trunk/tests/rest_api/channels/originate_with_id/test-config.yaml Mon Mar 17 09:53:53 2014
@@ -72,27 +72,27 @@
                     channel:
                         id: 'MyStasisId$'
             count: 1
+        -
+            # We should not see the other channel as it went to dialplan
+            # The fact that is has the correct ID is checked by AMI & CEL
+            conditions:
+                match:
+                    type: StasisStart
+                    application: testsuite
+                    channel:
+                        id: 'MyOtherStasisId'
+            count: 0
+        -
+            conditions:
+                match:
+                    type: ChannelStateChange
+                    application: testsuite
+                    channel:
+                        id: 'MyStasisId$'
             requests:
                 # delete the channel to end the test
                 method: 'delete'
                 uri: 'channels/MyStasisId'
-        -
-            # We should not see the other channel as it went to dialplan
-            # The fact that is has the correct ID is checked by AMI & CEL
-            conditions:
-                match:
-                    type: StasisStart
-                    application: testsuite
-                    channel:
-                        id: 'MyOtherStasisId'
-            count: 0
-        -
-            conditions:
-                match:
-                    type: ChannelStateChange
-                    application: testsuite
-                    channel:
-                        id: 'MyStasisId$'
             count: 1
         -
             conditions:




More information about the asterisk-commits mailing list