[asterisk-commits] mnicholson: testsuite/asterisk/trunk r132 - in /asterisk/trunk/asttest: lua/ ...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 24 15:40:33 CDT 2010


Author: mnicholson
Date: Wed Mar 24 15:40:29 2010
New Revision: 132

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=132
Log:
Sleep 3 seconds when spawning asterisk to allow for it to fully start.

Modified:
    asterisk/trunk/asttest/lua/astlib.lua
    asterisk/trunk/asttest/self-tests/astlib_manager/test.lua
    asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua

Modified: asterisk/trunk/asttest/lua/astlib.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/lua/astlib.lua?view=diff&rev=132&r1=131&r2=132
==============================================================================
--- asterisk/trunk/asttest/lua/astlib.lua (original)
+++ asterisk/trunk/asttest/lua/astlib.lua Wed Mar 24 15:40:29 2010
@@ -58,6 +58,7 @@
 	self:generate_essential_configs()
 	self:write_configs()
 	self:_spawn()
+	posix.sleep(3)
 end
 
 function asterisk:spawn_and_wait()

Modified: asterisk/trunk/asttest/self-tests/astlib_manager/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/self-tests/astlib_manager/test.lua?view=diff&rev=132&r1=131&r2=132
==============================================================================
--- asterisk/trunk/asttest/self-tests/astlib_manager/test.lua (original)
+++ asterisk/trunk/asttest/self-tests/astlib_manager/test.lua Wed Mar 24 15:40:29 2010
@@ -6,8 +6,6 @@
 a:generate_manager_conf()
 
 a:spawn()
-
-posix.sleep(1)
 
 m, err = a:manager_connect()
 if not m then

Modified: asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua?view=diff&rev=132&r1=131&r2=132
==============================================================================
--- asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua (original)
+++ asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua Wed Mar 24 15:40:29 2010
@@ -4,7 +4,6 @@
 
 a = ast.new()
 a:spawn()
-posix.sleep(1)
 res, err = a:term_or_kill()
 
 if res == nil then




More information about the asterisk-commits mailing list